FlacoBey

Untitled

Dec 30th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. public OnPluginStart()
  2. {
  3.     AddCommandListener(CommandListener);
  4. }
  5.  
  6. public Action:CommandListener(client, const String:command[], args)
  7. {
  8.     if (StrEqual(command, "callvote", false))
  9.     {
  10.         new String:arg1[16];
  11.         GetCmdArg(1, arg1, sizeof(arg1));
  12.         if (StrEqual(arg1, "restartgame", false))
  13.         {
  14.             decl String:map[75];    
  15.             GetCurrentMap(map, 75);
  16.             if(StrContains(map, "m1") != -1)
  17.             {
  18.                 return Plugin_Handled;
  19.             }
  20.         }
  21.     }
  22.     return Plugin_Continue;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment