15.10.2011, 21:30
pawn Код:
forward SetPlayerTeamFromClass(playerid, classid);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
return 1;
}
public SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0..1:
{
gTeam[playerid] = Groves;
SetPlayerPos(playerid,135.3506,-82.9732,1.4297);
SetPlayerCameraPos(playerid,130.6333,-82.2207,1.4297);
SetPlayerCameraLookAt(playerid,135.3506,-82.9732,1.4297);
SetPlayerFacingAngle(playerid,89.1092);
GameTextForPlayer(playerid, "~y~Groves", 3000, 5);
}
case 2:
{
gTeam[playerid] = Ballas;
SetPlayerPos(playerid,135.3506,-82.9732,1.4297);
SetPlayerCameraPos(playerid,130.6333,-82.2207,1.4297);
SetPlayerCameraLookAt(playerid,135.3506,-82.9732,1.4297);
SetPlayerFacingAngle(playerid,89.1092);
GameTextForPlayer(playerid, "~y~Ballas", 3000, 5);
}
}
return 1;
}