Advertisement
Guest User

Delete Cars Fs =]>Aizeah555<[=

a guest
Oct 29th, 2014
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. //Delete Cars FS By aizeah555 PLEASE DONT REMOVE CREDITS
  2.  
  3. #include <a_samp>
  4.  
  5. #define R 0xAA3333AA
  6. #define COLOR_RED 0xff0000a7
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("\n-----------------------------------------");
  11. print("Delete Cars fs by aizeah555");
  12. print("-------------------------------------------\n");
  13.  
  14.  
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. public OnPlayerConnect(playerid)
  24. {
  25. return 1;
  26. }
  27.  
  28. public OnPlayerCommandText(playerid, cmdtext[])
  29. {
  30. if( strcmp( cmdtext, "/deletecars", true ) == 0 )
  31. {
  32. if(!IsPlayerAdmin(playerid))
  33. {
  34. SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
  35. return 1;
  36. }
  37. for( new veh; veh < MAX_VEHICLES; veh ++ )
  38. {
  39. if ( veh != INVALID_VEHICLE_ID )
  40. {
  41. DestroyVehicle( veh );
  42. }
  43. }
  44. return 1;
  45. }
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement