Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin Template generated by Pawn Studio */
- #pragma semicolon 1
- #include <sourcemod>
- #include <cstrike>
- new bool:StartMap = false;
- public Plugin:myinfo =
- {
- name = "StartMap Restart",
- author = "xNos",
- description = "<- Description ->",
- version = "1.0",
- url = "<- URL ->"
- }
- public OnPluginStart()
- {
- HookEvent("round_start", Restart, EventHookMode_Post);
- }
- public OnMapStart()
- {
- new String:Map[32];
- GetCurrentMap(Map, 32);
- if(StrContains( Map, "zm_", false ) != -1)
- {
- StartMap = true;
- }
- }
- public Action:Restart(Handle:event,const String:name[],bool:dontBroadcast)
- {
- if(StartMap)
- {
- ServerCommand("mp_restartgame 1");
- StartMap = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement