SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 10/05/2013, 11:37 AM   #1
Rimmon
Big Clucker
 
Join Date: Nov 2011
Posts: 142
Reputation: 5
Default rPos


rPos is an include with some functions about player position
This is my first include so i thought to make something easy



Functions:
  • SetPlayerPosEx(playerid,Float:f_Px,Float:f_Py,Floa t:f_Pz,interior = 0,vw = 0,message[]);
  • SetVehiclePosEx(vehicleid,Float:f_Vx,Float:f_Vy,Fl oat:f_Vz,interior = 0,vw = 0);
  • SavePlayerPos(playerid);
  • LoadPlayerPos(playerid);


SetPlayerPosEx - Set the player position , interior ,virtualworld + message (optional)
SetVehiclerPosEx - Set the vehicle position , interior , virtualworld
SavePlayerPos - Save the player position,interior,virtualworld
LoadPlayerPos - Load the saved position , interior , virtualworld

__________________
If you have scripts ideas pm me(i know dini and SQLite)

My Scripts:

Rimmon is offline   Reply With Quote
Old 10/05/2013, 11:40 AM   #2
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,702
Reputation: 1176
Default Re: rPos

Not bad, though I guess it was more better to add some more stuffs and make it as an include. Else, to post on 'Useful Functions'.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 10/05/2013, 11:43 AM   #3
Rimmon
Big Clucker
 
Join Date: Nov 2011
Posts: 142
Reputation: 5
Default Re: rPos

Quote:
Originally Posted by Lordz™ View Post
Not bad, though I guess it was more better to add some more stuffs and make it as an include. Else, to post on 'Useful Functions'.
Thanks , tell me what functions would you like i add?
I have no ideas
__________________
If you have scripts ideas pm me(i know dini and SQLite)

My Scripts:

Rimmon is offline   Reply With Quote
Old 10/05/2013, 08:12 PM   #4
CreativityLacker
Big Clucker
 
CreativityLacker's Avatar
 
Join Date: Oct 2012
Location: The chocolate factory
Posts: 134
Reputation: 25
Default Re: rPos

Start by adding a pastebin, and then by making your parameters OPTIONAL

optional parameters -

suppose i just want to set the POSITION of the player, and nothing else, then what?
or suppose i just want to set the virtual world, interior and give him a message, and keep his position as it is, then what?
that's what functions are for, to reduce my work at that point of time.
__________________
Scripter at Resurrection
91.121.153.202:7778 or resur.cod5samp.com:7778
CreativityLacker 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
[FilterScript] RPos Saving System v1.0 (Good for Roleplay Server!) Reklez Filterscripts 1 06/03/2012 10:31 AM


All times are GMT. The time now is 08:45 AM.


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