[HELP]restart
#1

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

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..
Reply
#3

OK he got it before me ;P
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)