Advertisement
glitchdetector

GAMEMODE

Sep 3rd, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. //includes
  2. #include <a_samp>
  3.  
  4. //defines
  5. #define COLOR_RED 0xFF0000FF
  6. #define COLOR_WHITE 0x000000
  7. #define COLOR_GREEN 0x00FF08
  8.  
  9. //variables
  10. new players = 0;
  11.  
  12. main()
  13. {
  14. print("glitchdetector's Gamemode");
  15. return 1;
  16. }
  17.  
  18. public OnGameModeInit()
  19. {
  20. print("glitchdetector's Gamemode");
  21. AddPlayerClass(280,1544.6870,-1609.1960,13.3828,270.1332,-1,-1,-1,-1,-1,-1);
  22. return 1;
  23. }
  24.  
  25. public OnGameModeExit()
  26. {
  27. print("Gamemode stopped.");
  28. return 1;
  29. }
  30.  
  31. public OnPlayerConnect(playerid)
  32. {
  33. SendClientMessageToAll(COLOR_GREEN, "%s joined the server.");
  34. players++;
  35. SendClientMessage(playerid, COLOR_WHITE, "Welcome to ~r~glitchdetector's ~w~server!");
  36. return 1;
  37. }
  38.  
  39. public OnPlayerDisconnect(playerid, reason)
  40. {
  41. SendClientMessageToAll(COLOR_RED, "%s left the server.");
  42. players--;
  43. return 1;
  44. }
  45.  
  46. public OnPlayerRequestClass(playerid, classid)
  47. {
  48. SetPlayerInterior(playerid,14);
  49. SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
  50. SetPlayerFacingAngle(playerid,270.0);
  51. SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
  52. SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
  53. return 1;
  54. }
  55.  
  56. public OnPlayerText(playerid, text[])
  57. {
  58.  
  59. return 1;
  60. }
  61.  
  62. public OnPlayerDeath(playerid,killerid,reason)
  63. {
  64.  
  65. return 1;
  66. }
  67.  
  68. public OnPlayerCommandText(playerid, cmdtext[])
  69. {
  70. return 0;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement