08.09.2011, 19:13
pawn Code:
public SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = TEAM_WORKERS;
GameTextForPlayer(playerid,"~g~Workers",10,0);
SetPlayerPos(playerid,xcoord,ycoord,zcoord);
SetCameraPos(playerid,xcoord,ycoord,zcoord);
SetCameraLookat(playerid,xcoord,ycoord,zcoord);
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_AGENTS;
GameTextForPlayer(playerid,"~r~Agents",10,0);
SetPlayerPos(playerid,xcoord,ycoord,zcoord);
SetCameraPos(playerid,xcoord,ycoord,zcoord);
SetCameraLookat(playerid,xcoord,ycoord,zcoord);
}
return 1;
}