SA-MP Forums Archive
[Help]Making two Different Classes in 0.3 - 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: [Help]Making two Different Classes in 0.3 (/showthread.php?tid=103908)



[Help]Making two Different Classes in 0.3 - Danikov - 21.10.2009

How can i make two different classes and each of them has other camera angle...example:i want to make Good Guys Class and Bad Guys Class(Lol),And Good Guys camera position and spawn pos is in LSPD,And Bad Guys will spawn in Smokes Crack Factory.This is just an example for what i want.


Re: [Help]Making two Different Classes in 0.3 - Luka P. - 21.10.2009

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    if(classid == ID || classid == ID || classid == ID || classid == id) // add how many you want skin ids (class ids).. this is for Good Guys Class
    {
         SetPlayerPos(playerid,0.000,0.000,0.000); // change the coordinates...
         SetPlayerCameraPos(playerid,0.000,0.000,0.000); // change the coordinates
         SetPlayerCameraAngle(playerid,0.000); // change camera angle (2.000)
         SetPlayerCameraLookAt(playerid,0.000,0.000,0.000); // change the coordinates
    }
    else if(classid == ID || classid == ID || classid == ID || classid == id) // add how many you want skin ids (class ids).. this is for Bad Guys Class
    {
         SetPlayerPos(playerid,0.000,0.000,0.000); // change the coordinates...
         SetPlayerCameraPos(playerid,0.000,0.000,0.000); // change the coordinates
         SetPlayerCameraAngle(playerid,0.000); // change camera angle (2.000)
         SetPlayerCameraLookAt(playerid,0.000,0.000,0.000); // change the coordinates
     }
     return 1;
}