SA-MP Forums Archive
[HELP]restart - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]restart (/showthread.php?tid=227583)



[HELP]restart - bboytimix - 17.02.2011

help me please i need help with to make : when all players is This Team "TEAM_ZOMBIE" will be a restart please help me


Re: [HELP]restart - YungGee - 17.02.2011

pawn Код:
#include <a_samp>

#define TEAM_ZOMBIES 1

forward CheckTeams();

public OnGameModeInit()
{
    SetTimer("CheckTeams",2000,true);
    return 1;
}

public CheckTeams()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerTeam(i) == 1)
    {
    SendRconCommand("gmx");
    }
    else { }
    }
    return 1;
}
Work from that i guess..

This will restart if anyone is TEAM_ZOMBIE...Its a start..


Re: [HELP]restart - park4bmx - 17.02.2011

OK he got it before me ;P


Re: [HELP]restart - bboytimix - 26.02.2011

problem This make restart only when a 1 player is in TEAM_ZOMBIE , i need that when all players is in a TAM_ZOMBIE will be restart