08.09.2011, 19:39
Remove the
so you only have the
and add
It should work
pawn Code:
{
if(GetPlayerTeam(playerid) == TEAM_AGENTS)
{
SetPlayerPos(playerid,-2136.3921,-124.4632,36.5191);//Chnage this to the spawnpoint of your Agents Team!
SetPlayerHealth(playerid,100);
}
else if(GetPlayerTeam(playerid) == TEAM_WORKERS)
{
SetPlayerHealth(playerid,100);
SetPlayerPos(playerid,-2016.3192,130.2446,27.6875);//Chnage this to the spawnpoint of your Workers Team!
}
pawn Code:
public OnPlayerSpawn(playerid)
{
return 1;
}
pawn Code:
AddPlayerClass(Workersskin,-2016.3192,130.2446,27.6875,0,0,0,0,0,0,0); //Change the last 6 0's to the weapon/ammo ids
AddPlayerClass(Agentsskin,-2136.3921,-124.4632,36.5191,0,0,0,0,0,0,0); //Same here