06.04.2011, 10:36
I have a problem with this base system, when someone types /base when they get teleported they cant see anything
And I think the problem is T_ATT, T_DEF, because they dont spawn as those. They spawn with other ranks, but it should set their team to that, how can I do it?
I also wanna the spawns random, so its 50 chance to join ATT/DEF. It should change their team and give their weapon when they type /base, please help, I am gettign tired of this now -.-
pawn Код:
COMMAND:base(playerid, params[])
{
if(BaseOn == 0) return SendClientMessage(playerid, Red, "There is no base in progress, or the base has already started");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerInterior(i, 15);
SetSpawnInfo(i, T_ATT, 46, 2221.2100,-1148.9974,1025.7969,3.0111, 24, 500, 31, 500, 34, 500);
SetSpawnInfo(i, T_DEF, 46, 2193.1692,-1143.9407,1029.7969,180.0461, 24, 500, 31, 500, 34, 500);
GivePlayerWeapon(i, 24, 500);
GivePlayerWeapon(i, 31, 500);
GivePlayerWeapon(i, 34, 500);
}
}
return 1;
}
I also wanna the spawns random, so its 50 chance to join ATT/DEF. It should change their team and give their weapon when they type /base, please help, I am gettign tired of this now -.-