[Include] rPos
#1


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

Reply
#2

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'.
Reply
#3

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)