#7

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    switch(Gteam[playerid])
    {
        case TEAM_...: // Change ... to the human team
        {
            Gteam[playerid] = TEAM_ZOMBIE; // Transfers human to zombie
        }
        case TEAM_ZOMBIE:
        {
             // Code here, if a zombie dies.
        }
    }
    return 1;
}
Reply


Messages In This Thread
Set player team - by matdav - 07.07.2010, 17:49
Re: Hi. - by mprofitt - 07.07.2010, 18:02
Re: Hi. - by tanush - 07.07.2010, 18:03
Re: Hi. - by matdav - 07.07.2010, 18:07
Re: Hi. - by CAR - 07.07.2010, 18:09
Re: Hi. - by matdav - 07.07.2010, 18:20
Re: Hi. - by FreshKilla - 07.07.2010, 18:26
Re: Hi. - by matdav - 07.07.2010, 18:39
Re: Hi. - by Anthony_Brassi - 07.07.2010, 18:50

Forum Jump:


Users browsing this thread: 2 Guest(s)