Not detecting Class IDs
#1

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;
}
SA-MP Class IDs Problem
Reply
#2

Don't they start at 0?
Reply
#3

Quote:
Originally Posted by mamoru
Don't they start at 0?
Do they? Lol hold on :P
Lol yeah silly me, Works now
Reply


Forum Jump:


Users browsing this thread: