Guest User

Untitled

a guest
Aug 29th, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #if defined FILTERSCRIPT
  4. public OnFilterScriptInit()
  5. {
  6. print("===================================");
  7. print(" Basic Car Engine System by Djeric");
  8. print("===================================");
  9. return 1;
  10. }
  11.  
  12. public OnFilterScriptExit()
  13. {
  14. return 1;
  15. }
  16.  
  17. #else
  18.  
  19. main()
  20. {
  21. print("\n----------------------------------");
  22. print(" Blank Gamemode by your name here");
  23. print("----------------------------------\n");
  24. }
  25.  
  26. #endif
  27.  
  28. public OnPlayerStateChange(playerid, newstate, oldstate)
  29. {
  30. if(newstate == PLAYER_STATE_DRIVER)
  31. {
  32. TogglePlayerControllable(playerid, 0);
  33. SendClientMessage(playerid, -1, "/upali za paljenje motora");
  34. }
  35. return 1;
  36. }
  37. public OnPlayerExitVehicle(playerid, vehicleid)
  38. {
  39. SendClientMessage(playerid,-1,"Izasao si iz auta!");
  40. return 1;
  41. }
  42. CMD:upali(playerid,params[])
  43. {
  44. #pragma unused params
  45. if(IsPlayerInAnyVehicle(playerid) == 1)
  46. {
  47. TogglePlayerControllable(playerid,1);
  48. SendClientMessage(playerid,-1,"Upalio si automobil");
  49. }
  50. else return SendClientMessage(playerid,-1,"Nema iskoriscavanja komande!");
  51. return 1;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment