Guest User

Untitled

a guest
Oct 25th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. //includes
  2. #include <a_samp>
  3. #include <core>
  4. #include <float>
  5. //define dialozi
  6. #define DIALOG_REGISTER 1
  7. #define DIALOG_LOGIN 2
  8. //Pragma
  9. #pragma tabsize 0
  10.  
  11. main()
  12. {
  13. print("\n----------------------------------");
  14. print(" Orion Mark RolePlay \n");
  15. print("----------------------------------\n");
  16. }
  17.  
  18. public OnPlayerConnect(playerid)
  19. {
  20. GameTextForPlayer(playerid,"~w~SA-MP: ~g~Dobrodosli na Orion Mark RP",5000,5);
  21. return 1;
  22. }
  23.  
  24. public OnPlayerCommandText(playerid, cmdtext[])
  25. {
  26. new idx;
  27. new cmd[256];
  28.  
  29. cmd = strtok(cmdtext, idx);
  30.  
  31. if(strcmp(cmd, "/yadayada", true) == 0) {
  32. return 1;
  33. }
  34.  
  35. return 0;
  36. }
  37.  
  38. public OnPlayerSpawn(playerid)
  39. {
  40. SetPlayerInterior(playerid,0);
  41. TogglePlayerClock(playerid,0);
  42. return 1;
  43. }
  44.  
  45. public OnPlayerDeath(playerid, killerid, reason)
  46. {
  47. return 1;
  48. }
  49.  
  50. SetupPlayerForClassSelection(playerid)
  51. {
  52. SetPlayerInterior(playerid,14);
  53. SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
  54. SetPlayerFacingAngle(playerid, 270.0);
  55. SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
  56. SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
  57. }
  58.  
  59. public OnPlayerRequestClass(playerid, classid)
  60. {
  61. SetupPlayerForClassSelection(playerid);
  62. return 1;
  63. }
  64.  
  65. public OnGameModeInit()
  66. {
  67. SetGameModeText("OM 1.0v");
  68. ShowPlayerMarkers(1);
  69. ShowNameTags(1);
  70. AllowAdminTeleport(1);
  71.  
  72. AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
  73.  
  74. return 1;
  75. }
  76.  
  77. strtok(const string[], &index)
  78. {
  79. new length = strlen(string);
  80. while ((index < length) && (string[index] <= ' '))
  81. {
  82. index++;
  83. }
  84.  
  85. new offset = index;
  86. new result[20];
  87. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  88. {
  89. result[index - offset] = string[index];
  90. index++;
  91. }
  92. result[index - offset] = EOS;
  93. return result;
  94. }
Advertisement
Add Comment
Please, Sign In to add comment