Advertisement
Guest User

EXIT.pwn

a guest
Feb 28th, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. // Filter skrita od Juste da se meoze izaci iz rent auta i ostalih auta
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n--------------------------------------");
  10. print("EXIT FS UCITANA");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. return 1;
  18. }
  19.  
  20. #else
  21.  
  22. main()
  23. {
  24. print("\n----------------------------------");
  25. print(" Blank Gamemode by your name here");
  26. print("----------------------------------\n");
  27. }
  28.  
  29. #endif
  30.  
  31. public OnGameModeInit()
  32. {
  33. return 1;
  34. }
  35.  
  36. public OnGameModeExit()
  37. {
  38. return 1;
  39. }
  40.  
  41. public OnPlayerRequestClass(playerid, classid)
  42. {
  43. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  44. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  45. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  46. return 1;
  47. }
  48. public OnPlayerCommandText(playerid, cmdtext[])
  49. {
  50. if (strcmp("/exit", cmdtext, true, 10) == 0)
  51. {
  52. RemovePlayerFromVehicle(playerid);
  53. RemovePlayerAttachedObject(playerid, 1);
  54. TogglePlayerControllable(playerid, true);
  55. return 1;
  56. }
  57. return 0;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement