SetSpawnInfo
#1

Hello, I am having some problems with SetSpawnInfo.

I've done this, and it isnt setting the player Interior,

pawn Код:
COMMAND:joinbase(playerid, params[])
{
    if(BaseOn == 0) return SendClientMessage(playerid, Red, "There is no base in progress");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new rand = random(sizeof(RandomSpawn));
        SetPlayerInterior(playerid, 15);
        SetSpawnInfo(i, T_ATT, 1, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2], RandomSpawn[rand][3], 24, 500, 26, 500, 34, 500);
        SetSpawnInfo(i, T_DEF, 260, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2], RandomSpawn[rand][3], 24, 500, 26, 500, 34, 500);
    }
    return 1;
}
Reply


Messages In This Thread
SetSpawnInfo - by xir - 03.04.2011, 19:07
Re: SetSpawnInfo - by antonio112 - 04.04.2011, 02:04

Forum Jump:


Users browsing this thread: 1 Guest(s)