19.02.2015, 13:54
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
SetPlayerTeamFromClass(playerid, classid);
SetPlayerPos(playerid, 345.3785,302.2646,999.9382);
SetPlayerFacingAngle(playerid, 89.6528);
SetPlayerCameraLookAt(playerid, 345.3629,303.5599,999.9382);
SetPlayerCameraPos(playerid, 2116.0205 + (5 * floatsin(-89.6528, degrees)), 2143.3225 + (5 * floatcos(-89.6528, degrees)), 10.8203);
return 1;
}