Advertisement
Guest User

Sierenen FilterScript//PAWN

a guest
Jun 19th, 2011
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.85 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6. new sirene[MAX_VEHICLES];
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print("Sirenen FilterScript");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15.  
  16. #else
  17.  
  18. main()
  19. {
  20. }
  21.  
  22. #endif
  23.  
  24.  
  25. public OnPlayerCommandText(playerid, cmdtext[])
  26. {
  27.     if (strcmp("/blicht an", cmdtext, true, 10) == 0)
  28.     {
  29.         new Float:x,Float:y,Float:z;
  30.         GetPlayerPos(playerid,x,y,z);
  31.         sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646,x,y,z,0,0,0,100);
  32.         AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.2,0,0.71,0,0,0);
  33.         return 1;
  34.     }
  35.     if (strcmp("/blicht aus", cmdtext, true, 10) == 0)
  36.     {
  37.         DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
  38.         return 1;
  39.     }
  40.     return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement