} public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); switch (classid) { case 0: { GameTextForPlayer(playerid, "~b~THE FAST AND THE FURIOUS", 1000, 3); } } return 1; } 1. #include 2. 3. main() 4. { 5. print("\n----------------------------------"); 6. print(" Blank Gamemode by your name here"); 7. print("----------------------------------\n"); 8. } 9. 10. public OnGameModeInit() 11. { 12. SetGameModeText("Blank Script"); 13. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); 14. return 1; 15. } 16. 17. public OnGameModeExit() 18. { 19. return 1; 20. } 21. 22. public OnPlayerRequestClass(playerid, classid) 23. { 24. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); 25. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); 26. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); 27. return 1; 28. } 29. 30. public OnPlayerRequestSpawn(playerid) 31. { 32. return 1; 33. } 34. 35. public OnPlayerConnect(playerid) 36. { 37. return 1; 38. } 39. 40. public OnPlayerDisconnect(playerid, reason) 41. { 42. return 1; 43. } 44. 45. public OnPlayerSpawn(playerid) 46. { 47. return 1; 48. } 49. 50. public OnPlayerDeath(playerid, killerid, reason) 51. { 52. return 1; 53. } 54. 55. public OnVehicleSpawn(vehicleid) 56. { 57. return 1; 58. } 59. 60. public OnVehicleDeath(vehicleid, killerid) 61. { 62. return 1; 63. } 64. 65. public OnPlayerText(playerid, text[]) 66. { 67. return 1; 68. } 69. 70. public OnPlayerPrivmsg(playerid, recieverid, text[]) 71. { 72. return 1; 73. } 74. 75. public OnPlayerCommandText(playerid, cmdtext[]) 76. { 77. if (strcmp(cmdtext, "/lock", true)==0) 78. { 79. if(IsPlayerInAnyVehicle(playerid)) 80. { 81. new State=GetPlayerState(playerid); 82. if(State!=PLAYER_STATE_DRIVER) 83. { 84. SendClientMessage(playerid,0xFFFF00AA,"You can only lock the doors as the driver."); 85. return 1; 86. } 87. new i; 88. for(i=0;i