23.01.2011, 12:13
red's
Quote:
Originally Posted by 1126;1032391
[CODE public OnPlayerSpawn(playerid)
{ SetPlayerToTeamColor(playerid); if(gTeam[playerid] = TEAM_NEWBEYOND) { new newbeyondspawn; newbeyondspawn = random(sizeof(gNewbeyondSpawns)); SetPlayerPos(playerid,gNewbeyondSpawns[newbeyondspawn][0],gNewbeyondSpawns[newbeyondspawn][1],gNewbeyondSpawns[newbeyondspawn][2]); SetPlayerFacingAngle(playerid,gNewbeyondSpawns[newbeyondspawn][3]); SetPlayerInterior(playerid, 1; SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid,200.0); GivePlayerMoney(playerid,1000); } else if(gTeam[playerid] = TEAM_400K)/*<missed in my question,but no matter else if or just else,the problem's still here,i tried. { new fkspawn; fkspawn = random(sizeof(g400KSpawns)); SetPlayerPos(playerid,g400KSpawns[fkspawn][0],g400KSpawns[fkspawn][1],g400KSpawns[fkspawn][2]); SetPlayerFacingAngle(playerid,g400KSpawns[fkspawn][3]); SetPlayerInterior(playerid, 1; SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid,200.0); GivePlayerMoney(playerid,1000); } return 1; } [/CODE] |