SA-MP Forums Archive
setplayerclass alike command - 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: setplayerclass alike command (/showthread.php?tid=652677)



setplayerclass alike command - Zeus666 - 16.04.2018

Hi. So far I managed to do this.




PHP код:
CMD:buyphone(playerid)
{
    
SetPlayerFacingAngle(playerid,1127.0055);
    
SetPlayerCameraPos(playerid1127.0055,-1556.1437,-30.2015);
    
SetPlayerCameraLookAt(playerid1127.0055,-1556.1437,-30.2015);
    return 
1;

My question is, how can I add Next / Prev / Buy button, which will show new playercamera and if Buy button is pressed, to give pInfo[i][Money] -= 500

?


Re: setplayerclass alike command - jasperschellekens - 16.04.2018

Create textdraws and use onplayerclicktextdraw