16.09.2011, 22:42
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
SetPlayerPos(playerid, 2495.0413,-1685.2115,13.5115);
SetPlayerCameraPos(playerid, 2495.0134,-1681.1893,13.3387);
SetPlayerCameraLookAt(playerid, 2495.0413,-1685.2115,13.5115);
GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
SetPlayerColor(playerid, 0x2D964DFF);
SetPlayerFacingAngle(playerid, 360.000);
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
else if(classid == 1)
{
SetPlayerPos(playerid, 369.2329,1916.1652,18.3985);
SetPlayerCameraPos(playerid, 365.9307,1912.9822,17.6406);
SetPlayerCameraLookAt(playerid, 369.2329,1916.1652,18.3985);
GameTextForPlayer(playerid, "Army", 5000, 4);
SetPlayerColor(playerid, 0xC4840EFF);
SetPlayerFacingAngle(playerid, 110.000);
ApplyAnimation(playerid, "GHANDS", "gsign5LH", 4.0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
else if(classid == 2)
{
SetPlayerPos(playerid, 1174.7109,-1323.8867,14.5938);
SetPlayerCameraPos(playerid, 1183.3655,-1324.1521,13);
SetPlayerCameraLookAt(playerid, 1174.7109,-1323.8867,14.5938);
GameTextForPlayer(playerid, " ~h~~r~Medic", 5000, 4);
SetPlayerColor(playerid, 0xF598E4FF);
SetPlayerFacingAngel(playerid, 270.000);
ApplyAnimation(playerid, "DANCING", "dnce_M_b", 4.0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
return 1;
}