Advertisement
Guest User

Untitled

a guest
Oct 21st, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.07 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4.  
  5. #define ROT 0xFF0000FF
  6. #define GRÜN 0x41FF00FF
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. new PD2;
  11. forward PD2close();
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     print("\n--------------------------------------");
  16.     print(" Filterscript by LarryGoo");
  17.     print("--------------------------------------\n");
  18.  
  19.     PD2 = CreateObject(2933,1588.80004883,-1638.19995117,14.00000000,1.99996948,359.74984741,0.00872803);
  20.  
  21.     return 1;
  22. }
  23. #endif
  24.  
  25. public OnPlayerCommandText(playerid, cmdtext[])
  26. {
  27.     if (strcmp("/PD2",cmdtext,true,10)==0)
  28.     {
  29.         if(IsPlayerInRangeOfPoint(playerid,10.0,1588.80004883,-1638.19995117,14.00000000))
  30.         {
  31.             MoveObject(PD2,1588.80004883,-1638.19995117,10.00000000, 5);
  32.             SendClientMessage(playerid,GRÜN,"Das Tor schließt in 5 Sekunden.");
  33.             SetTimer("PD2close", 5005,0);
  34.             return 1;
  35.         }
  36.         else
  37.         {
  38.             SendClientMessage(playerid,ROT,"Du bist nicht in der Nähe!");
  39.             return 1;
  40.         }
  41.     }
  42.     return 1;
  43. }
  44.  
  45. public PD2close()
  46. {
  47.     MoveObject(PD2,1588.80004883,-1638.19995117,14.00000000, 5);
  48.     return 1;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement