24.05.2015, 00:14
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerVirtualWorld(playerid, 0);
if(0 <= SkinClass[classid] <= 279 || 289 <= SkinClass[classid] <= 299)
{
GameTextForPlayer( playerid, "~r~Al-nas", 300, 3 );
SetPlayerPos(playerid, 349.22, 30306, 1000.13);
SetPlayerFacingAngle(playerid, 187.3405);
SetPlayerInterior(playerid, 6);
SetPlayerCameraPos(playerid, 347.58, 303.12, 999.15);
SetPlayerCameraLookAt(playerid, 349.22, 30306, 1000.13);
}
else
{
GameTextForPlayer( playerid, "~b~POLES", 300, 3 );
SetPlayerPos(playerid, 231.6830, 165.2193, 1003.9044);
SetPlayerFacingAngle(playerid, 263.6608);
SetPlayerInterior(playerid, 3);
SetPlayerCameraPos(playerid, 234.17, 165.77, 1004.02);
SetPlayerCameraLookAt(playerid, 231.6830, 165.2193, 1003.9044);
}
return 1;
}