Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define ROT 0xFF0000FF
- #define GRÜN 0x41FF00FF
- #if defined FILTERSCRIPT
- new PD2;
- forward PD2close();
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Filterscript by LarryGoo");
- print("--------------------------------------\n");
- PD2 = CreateObject(2933,1588.80004883,-1638.19995117,14.00000000,1.99996948,359.74984741,0.00872803);
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/PD2",cmdtext,true,10)==0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,1588.80004883,-1638.19995117,14.00000000))
- {
- MoveObject(PD2,1588.80004883,-1638.19995117,10.00000000, 5);
- SendClientMessage(playerid,GRÜN,"Das Tor schließt in 5 Sekunden.");
- SetTimer("PD2close", 5005,0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid,ROT,"Du bist nicht in der Nähe!");
- return 1;
- }
- }
- return 1;
- }
- public PD2close()
- {
- MoveObject(PD2,1588.80004883,-1638.19995117,14.00000000, 5);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement