SA-MP Forums Archive
Not detecting Class IDs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Not detecting Class IDs (/showthread.php?tid=140489)



Not detecting Class IDs - Torran - 09.04.2010

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


Re: Not detecting Class IDs - mamorunl - 09.04.2010

Don't they start at 0?


Re: Not detecting Class IDs - Torran - 09.04.2010

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