OnPlayerSpawn, check player team and spam the SendClientMessage if there is
#2

Delete the loop, you don't need.

pawn Код:
public OnPlayerSpawn ( playerid )
{
    if (gTeam[playerid] == TEAM_POLICE)
        SendClientMessage(playerid, 0xFFFFFFFF, "Police!");
    else if (gTeam[playerid] == TEAM_SWAT)
        SendClientMessage(playerid, 0xFFFFFFFF, "SWAT!");
    else if (gTeam[playerid] == TEAM_TERRORISTS)
        SendClientMessage(playerid, 0xFFFFFFFF, "Terrorists!");
    else if (gTeam[playerid] == TEAM_HUNTERS)
        SendClientMessage(playerid, 0xFFFFFFFF, "Hunters!");

    new vR = random(sizeof(Vrand));
    SetPlayerPos(playerid, Vrand[vR][0], Vrand[vR][1], Vrand[vR][2]);
    return 1;
}
Reply


Messages In This Thread
OnPlayerSpawn, check player team and spam the SendClientMessage if there is - by [LvZ]Free - 16.05.2012, 14:49
Re: OnPlayerSpawn, check player team and spam the SendClientMessage if there is - by ViniBorn - 16.05.2012, 14:50
Re: OnPlayerSpawn, check player team and spam the SendClientMessage if there is - by Vince - 16.05.2012, 14:51
Re: OnPlayerSpawn, check player team and spam the SendClientMessage if there is - by [LvZ]Free - 16.05.2012, 15:01

Forum Jump:


Users browsing this thread: 3 Guest(s)