Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.96 KB | None | 0 0
  1. #include <a_samp>
  2. new cmd[256];
  3. new idx;
  4. #if defined FILTERSCRIPT
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     print("\n--------------------------------------");
  9.     print(" Blank Filterscript by your name here");
  10.     print("--------------------------------------\n");
  11.     return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16.     return 1;
  17. }
  18.  
  19. #else
  20.  
  21. main()
  22. {
  23.     print("\n----------------------------------");
  24.     print(" Blank Gamemode by your name here");
  25.     print("----------------------------------\n");
  26. }
  27.  
  28. #endif
  29.  
  30. public OnGameModeInit()
  31. {
  32.     // Don't use these lines if it's a filterscript
  33.     SetGameModeText("Blank Script");
  34.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  35.     return 1;
  36. }
  37.  
  38. public OnGameModeExit()
  39. {
  40.     return 1;
  41. }
  42.  
  43. public OnPlayerRequestClass(playerid, classid)
  44. {
  45.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  46.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  47.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  48.     return 1;
  49. }
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53.     return 1;
  54. }
  55.  
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58.     return 1;
  59. }
  60.  
  61. public OnPlayerSpawn(playerid)
  62. {
  63.     return 1;
  64. }
  65.  
  66. public OnPlayerDeath(playerid, killerid, reason)
  67. {
  68.     return 1;
  69. }
  70.  
  71. public OnVehicleSpawn(vehicleid)
  72. {
  73.     return 1;
  74. }
  75.  
  76. public OnVehicleDeath(vehicleid, killerid)
  77. {
  78.     return 1;
  79. }
  80.  
  81. public OnPlayerText(playerid, text[])
  82. {
  83.     return 1;
  84. }
  85.  
  86. public OnPlayerCommandText(playerid, cmdtext[])
  87. {
  88.     if (strcmp(cmd, "/kick", true, 10) == 0)
  89.     {
  90.         new tmp[256];
  91.         new plid;
  92.         new motivo;
  93.         tmp = strtok(cmdtext, idx);
  94.         plid = strval(tmp);
  95.         motivo = strtok(cmdtext, idx);
  96.         if(!strlen(tmp))
  97.         {
  98.         SendClientMessage(playerid, 0xFFFFFFAA, "[ERRO] Use: /kick [id] [motivo]");
  99.         return 1;
  100.         }
  101.         if(IsPlayerConnected(plid) == 0)
  102.         {
  103.         SendClientMessage(playerid, 0xFFFFFFAA, "[ERRO] ID não existente, revise o comando e tente novamente.");
  104.         return 1;
  105.         }
  106.         Kick(plid, motivo);
  107.         return 1;
  108.     }
  109.     return 0;
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement