Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <DOF2>
  7.  
  8. #define DIALOG_REGISTRO 1
  9. #define DIALOG_LOGIN 2
  10.  
  11. main()
  12. {
  13. print("\n----------------------------------");
  14. print(" Blank Gamemode by your name here");
  15. print("----------------------------------\n");
  16. }
  17.  
  18. public OnGameModeInit()
  19. {
  20. // Don't use these lines if it's a filterscript
  21. SetGameModeText("Blank Script");
  22. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  23. return 1;
  24. }
  25.  
  26. public OnGameModeExit()
  27. {
  28. DOF2_Exit();
  29. return 1;
  30. }
  31.  
  32. public OnPlayerRequestClass(playerid, classid)
  33. {
  34. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  35. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  36. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  37. new file[50], aname[MAX_PLAYER_NAME], string[250];
  38. GetPlayerName(playerid, aname, sizeof(aname));
  39. format(file, sizeof(file), "Contas/%s.ini", aname);
  40. if(DOF2_FileExists(file))
  41. (
  42. format(string, sizeof(string), "Olá %s Seja Bem Vindo(a) Novamente Em Nosso Servidor !\nDigite Sua Senha Para Se Logar.", aname);
  43. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Logar", string, "Logar", "Cancelar");
  44. (
  45. else
  46. )
  47. format(string, sizeof(string), "Olá %s Seja Bem Vindo(a) Pela Primeira Vez Em Nosso Servidor !\nDigite Sua Senha Para Se Registrar.", aname);
  48. ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Registrar", string, "Registrar", "Cancelar");
  49. return 1;
  50. }
  51.  
  52. public OnPlayerConnect(playerid)
  53. {
  54. return 1;
  55. }
  56.  
  57. public OnPlayerDisconnect(playerid, reason)
  58. {
  59. return 1;
  60. }
  61.  
  62. public OnPlayerSpawn(playerid)
  63. {
  64. return 1;
  65. }
  66.  
  67. public OnPlayerDeath(playerid, killerid, reason)
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnVehicleSpawn(vehicleid)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnVehicleDeath(vehicleid, killerid)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnPlayerText(playerid, text[])
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnPlayerCommandText(playerid, cmdtext[])
  88. {
  89. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  90. {
  91. // Do something here
  92. return 1;
  93. }
  94. return 0;
  95. }
  96.  
  97. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  98. {
  99. return 1;
  100. }
  101.  
  102. public OnPlayerExitVehicle(playerid, vehicleid)
  103. {
  104. return 1;
  105. }
  106.  
  107. public OnPlayerStateChange(playerid, newstate, oldstate)
  108. {
  109. return 1;
  110. }
  111.  
  112. public OnPlayerEnterCheckpoint(playerid)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnPlayerLeaveCheckpoint(playerid)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnPlayerEnterRaceCheckpoint(playerid)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerLeaveRaceCheckpoint(playerid)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnRconCommand(cmd[])
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerRequestSpawn(playerid)
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnObjectMoved(objectid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnPlayerObjectMoved(playerid, objectid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerPickUpPickup(playerid, pickupid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnVehicleMod(playerid, vehicleid, componentid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnPlayerSelectedMenuRow(playerid, row)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerExitedMenu(playerid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnRconLoginAttempt(ip[], password[], success)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerUpdate(playerid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerStreamIn(playerid, forplayerid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerStreamOut(playerid, forplayerid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnVehicleStreamIn(vehicleid, forplayerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnVehicleStreamOut(vehicleid, forplayerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  223. {
  224. new file[50], aname[MAX_PLAYER_NAME];
  225. GetPlayerName(playerid, aname, sizeof(aname));
  226. format(file, sizeof(file), "Contas/%s.ini", aname);
  227. if(dialogid == DIALOG_REGISTRO)
  228. (
  229. DOF2_CreateFile(file);
  230. DOF2_SetString(file, "Senha", inputtext);
  231. DOF2_SetInt(file, "Dinheiro", 10000);
  232. DOF2_SaveFile();
  233. SendClientMessage(playerid, 0xFFFF00AA, "Registrado Com Sucesso!");
  234. SpawnPlayer(playerid);
  235. )
  236.  
  237. if(dialogid == DIALOG_LOGIN)
  238. (
  239. if(strcmp(inputtext, DOF2_GetString(file, "Senha"), true) == 0);
  240. (
  241. )
  242. )
  243. return 1;
  244. }
  245.  
  246. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  247. {
  248. return 1;
  249. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement