09.04.2010, 11:44
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 1)
{
SetPlayerPos(playerid, 2273.087646, 2447.706542, 3.531250);
SetPlayerFacingAngle(playerid, 210.786346);
SetPlayerCameraLookAt(playerid, 2273.087646, 2447.706542, 3.531250);
SetPlayerCameraPos(playerid, 2273.087646 + (3 * floatsin(-210.786346, degrees)), 2447.706542 + (3 * floatcos(-210.786346, degrees)), 3.531250);
GameTextForPlayer(playerid, "LVPD Officer", 2500, 4);
}
if(classid == 2)
{
SetPlayerPos(playerid, -1590.408325, 717.037780, -5.242187);
SetPlayerFacingAngle(playerid, 314.631683);
SetPlayerCameraLookAt(playerid, -1590.408325, 717.037780, -5.242187);
SetPlayerCameraPos(playerid, -1590.408325 + (3 * floatsin(-314.631683, degrees)), 717.037780 + (3 * floatcos(-314.631683, degrees)), -5.242187);
GameTextForPlayer(playerid, "SFPD Officer", 2500, 4);
}
return 1;
}