SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/04/2018, 10:14 PM   #1
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 440
Reputation: 41
Default setplayerclass alike command

Hi. So far I managed to do this.




PHP Code:
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

?
Zeus666 is offline   Reply With Quote
Old 16/04/2018, 10:28 PM   #2
jasperschellekens
Gangsta
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Gehenna
Posts: 567
Reputation: 31
Default Re: setplayerclass alike command

Create textdraws and use onplayerclicktextdraw
__________________
Offering php and pawn scripts against payment. PM me.

[Filterscripts] SQLlite - Jaspers Pin Code Script - Additional security.
[Filterscripts] Jasper's Woodcutting job/skill with levels and XP. Custom map
[Filterscripts] Simple trucking filterscript
jasperschellekens is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SetPlayerClass??? Loading... Help Archive 2 29/06/2011 05:12 PM
[HELP] Warn Setplayerclass GoldEagle Help Archive 4 31/01/2011 09:06 PM
How to do blood1 = SetPlayerClass? Bloodz4Lyfe Help Archive 1 31/12/2009 01:11 AM
[HELP] Exploding a string to an array of substrs; PHP-alike explode() in Pawn? Kyeno Help Archive 3 21/12/2009 05:44 PM


All times are GMT. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.