SA-MP Forums Archive
spawn Class - 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)
+--- Thread: spawn Class (/showthread.php?tid=472077)



spawn Class - Another1 - 26.10.2013

hello can someone help me to spawn Class like this please

https://www.youtube.com/watch?v=LCg6bxOzW-Y


Re: spawn Class - bensmart469 - 26.10.2013

OnPlayerRequestClass(playerid,classid)
{
switch(classid)
{
case 0:
{
// SetPlayerCameraPos/LookAt
}
}
return 1;
}
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Sorry about the messed-up indentation.


Re: spawn Class - Another1 - 26.10.2013

thanks but how to make the camera look to places like in video sorry for my suck english


Re: spawn Class - Another1 - 26.10.2013

help!!!


Re: spawn Class - SilentSoul - 26.10.2013

pawn Код:
switch (classid)
        case 0:
        {
            if(classid == 0)
            SetPlayerCameraPos(playerid, 2462.4019,-1658.0359,13.3047); // where the camera looking
            SetPlayerCameraLookAt(playerid, 2468.6868,-1660.0106,13.3356); //camera look at
            SetPlayerFacingAngle(playerid, 70.7120);//Angle ,how he stand
        }
And ofc don't forget to change Floats to your X,Y,Z