Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #pragma tabsize 0
- #define COLOR_YELLOW 0xFFFF00AA
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- new housegate1;
- new housegate2;
- public OnFilterScriptInit()
- {
- housegate1 = CreateObject(988, 1305.335693, -802.542603, 84.179688, 0.0000, 0.0000, 0.0000);
- housegate2 = CreateObject(980, 1245.38843, -767.14270, 91.41923, 0.00000, 0.00000, 0.00000);
- print("\n--------------------------------------");
- print("Lehmzwerk");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/housegate_auf", true) == 0){
- MoveObject(housegate1, 1003.28320, -643.52832, 115.85823, 8.71293,4);
- SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Offen");
- return 1;
- }
- if (strcmp(cmdtext, "/housegate_zu", true) == 0){
- MoveObject(housegate1, 1003.28320, -643.52832, 124.20808, 15.24033,4);
- SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Zu");
- return 1;
- }
- {
- if (strcmp(cmdtext, "/housegate_auf", true) == 0){
- MoveObject(housegate2, 1245.38843, -767.14270, 87.57541, 8.71293,4);
- SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Offen");
- return 1;
- }
- if (strcmp(cmdtext, "/housegate_zu", true) == 0){
- MoveObject(housegate2, 1245.38843, -767.14270, 91.41923, 15.24033,4);
- SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Tor ist Zu");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement