27.05.2010, 02:28
pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerCheckpoint(playerid, X, Y, Z);
} else {
SetPlayerCheckpoint(playerid, X, Y, Z);
}
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
//code for team 1
} else {
//code for team 2
}
}