01.02.2011, 02:05
I not know,but test
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
new rands = random(sizeof(gZombie));
SetPlayerPos(playerid, gZombie[rands][0], gZombie[rands][1], gZombie[rands][2]);
SetPlayerFacingAngle(playerid, gZombie[rands][3]);
}
if(gTeam[playerid] == TEAM_HUMAN)
{
new rands = random(sizeof(gHuman));
SetPlayerPos(playerid, gHuman[rands][0], gHuman[rands][1], gHuman[rands][2]);
SetPlayerFacingAngle(playerid, gHuman[rands][3]);
}
return 1;
}