Random Spawns Problem
#2

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;
}
Reply


Messages In This Thread
Random Spawns Problem - by bruno_orlandi - 01.02.2011, 01:34
Respuesta: Random Spawns Problem - by ipsBruno - 01.02.2011, 02:05
Re: Random Spawns Problem - by =WoR=Mitch - 01.02.2011, 02:32

Forum Jump:


Users browsing this thread: 2 Guest(s)