SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/04/2018, 05:21 PM   #1
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 442
Reputation: 41
Default How can I achieve this

I want to make a

/buyphone command.


And when /buyphone command it's activated, I want to zoom screen without seeing the character on these locations



And a textbox to appear "buy" or "next"





How's on bare script, something like change skin.



I don't need coding, I can create it, but I don't know what functions to use
Zeus666 is offline   Reply With Quote
Old 16/04/2018, 05:26 PM   #2
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 442
Reputation: 41
Default Re: How can I achieve this

I can use

PHP Code:
    SetPlayerFacingAngle(playerid,
    
SetPlayerCameraPos(playerid,
    
SetPlayerCameraLookAt(playerid 


and do case for each camerapos?

Zeus666 is offline   Reply With Quote
Old 16/04/2018, 08:56 PM   #3
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 442
Reputation: 41
Default Re: How can I achieve this

Someone help?
Zeus666 is offline   Reply With Quote
Old 17/04/2018, 07:22 AM   #4
Threshold
High-roller
 
Threshold's Avatar
 
Join Date: Nov 2012
Location: Australia
Posts: 3,038
Reputation: 519
Default Re: How can I achieve this

http://wiki.sa-mp.com/wiki/InterpolateCameraPos
http://wiki.sa-mp.com/wiki/InterpolateCameraLookAt
http://wiki.sa-mp.com/wiki/SetPlayerCameraPos
http://wiki.sa-mp.com/wiki/SetPlayerCameraLookAt

I don't understand what you're having trouble with? You have the functions, what exactly don't you understand about them?

If you want a moving camera, use InterpolateCameraPos and InterpolateCameraLookAt. If you want the camera to move instantly, you can use SetPlayerCameraPos and SetPlayerCameraLookAt instead. (Even though Interpolation has the option to do both.. :/)
__________________

SERVER.LVCNR.NET:7777
Threshold is offline   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
[Include] :: iAchieve :: Dynamic Achievement System - (Notify-on-achieve) (Stylish Textdraws) (uses Y_INI for saving/loading) iPLEOMAX Includes 66 05/06/2017 01:30 PM
Is there a way to achieve this? DirtSlasher Server Support 2 14/05/2015 02:10 PM
What do i achieve while gaming? NicholasA Everything and Nothing 17 05/01/2013 08:12 PM
I Have a crazy IDEA idk how to achieve ? Healian Scripting Help 9 11/08/2012 03:06 AM
How am I going to achieve this ? Jay. Help Archive 7 19/07/2011 07:21 PM


All times are GMT. The time now is 11:41 AM.


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