03.04.2011, 19:07
Hello, I am having some problems with SetSpawnInfo.
I've done this, and it isnt setting the player Interior,
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;
}