_iLustcheR_

[SAMP-IL] Four Ways To Protect Your Server - Fourth Way

Oct 18th, 2016
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.27 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define GameModeAMX "NameAMX"
  4.  
  5. public OnGameModeInit()
  6. {
  7.     new SGameModeAMX[32];
  8.     GetConsoleVarAsString("gamemode0", SGameModeAMX, sizeof(SGameModeAMX));
  9.     if(strcmp(SGameModeAMX, GameModeAMX, false)) SendRconCommand("exit");
  10.     return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment