Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPluginStart()
- {
- AddCommandListener(CommandListener);
- }
- public Action:CommandListener(client, const String:command[], args)
- {
- if (StrEqual(command, "callvote", false))
- {
- new String:arg1[16];
- GetCmdArg(1, arg1, sizeof(arg1));
- if (StrEqual(arg1, "restartgame", false))
- {
- decl String:map[75];
- GetCurrentMap(map, 75);
- if(StrContains(map, "m1") != -1)
- {
- return Plugin_Handled;
- }
- }
- }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment