[Include] SetPlayerPosEx
#1

- Introduction -

v1.0 : This is my first include. I was roaming with friends so i thought of making a Stock function by which we can SetPlayerPos and we can SetPlayerFacingAngle as well with the same function. So i went back home and made it in 3 minutes. So thought of compiling an include to release this stock function so that everyone can use it.
v1.1 : Just after releasing v1.0 , iTorran suggested me to add new param's to the include. So i just added in some minutes and uploaded with added info!
- Functions -

pawn Код:
//v1.0
//There is only one Stock which is:
stock SetPlayerPosEx(playerid, Float:x ,Float:y,Float:z,Float:a) // Float x = X-Coordinate , Float y = Y-Coordinate , Float z = Z-Coordinate , Float a = Player's facing angle
{
    SetPlayerPos(playerid , x , y ,z);
    SetPlayerFacingAngle(a);
    return 1;  
}
/* Here this function input's Float values from actual argument's and transfer's the value to the format argument's inside the curly braces. First the stock Set's the Player's position according to the x,y,z and Sets the Players angle according to a which the facing angle. */
//v.1.1 -
stock SetPlayerPosEx(playerid, Float:x ,Float:y,Float:z,Float:a,interior,vw)
{
    SetPlayerPos(playerid , x , y ,z);
    SetPlayerFacingAngle(playerid, a);
    SetPlayerInterior(playerid, interior);
    SetPlayerVirtualWorld(playerid, vw);
    return 1;
}
/* In v1.1 the stock has new added parameter's which are interior and virtual world. These are integer values.
SetPlayerInterior & SetPlayerVirtualWorld collect's their value from actual argument's and return's 1 when task is over! */
- How to Use -

pawn Код:
// With v1.1 & 1.0 (Cross Compatible)
// You can use this without interior & virtual world param. (Default 0)
SetPlayerPosEx(playerid,-2650.9975, 1382.7977, 7.1888, 267.40);
// This will just set player's position and angle with int and vw as 0 (Default)
//
//                              OR
// With v1.1 Only
SetPlayerPosEx(playerid,-2650.9975, 1382.7977, 7.1888, 267.40,0,5);
// Here 0 = interior & 5 = Virtual World
- Installation -
pawn Код:
// Simple Add the line below on the top of your Game mode or where you have included other .inc files such as a_samp , etc.
#include <spsx>
- Download -
v1.0 - Mediafire -
v1.0 - Pastebin -

v1.1 - Mediafire - (Recommended) (Cross Compatible)
v1.1 - Pastebin - (Recommended) (Cross Compatible)
Mirrors: Allowed [Currently:None]

- Future Releases -

Spsx will have future releases. Thinking of updating the include with some new functions.

- Change Log -

v1.0 - spsx.inc was able to set Player's Postions as well as their Facing Angle.
v1.1 - spsx.inc is able to Set Player's interior and virtual world along with positions & angle.


- Known Bugs -
None

Report Bugs on this thread if you find any please or post a suggestion if you have any.


- Credits -
- v1.0
Ballu Miaa : For writing the whole include
Kalcor & Team : For developing SetPlayerPos & SetPlayerFacing Angle


- v1.1
Ballu Miaa : For the Include.
Kalcor & Team : For SA-MP
iTorran : For his great idea of adding new param's to the stock.
****** : For making v1.1 cross compatible with v1.0


- BMiaa
Reply


Messages In This Thread
SetPlayerPosEx - spsx.inc v1.1 - by Ballu Miaa - 28.02.2012, 09:12
Re: SetPlayerPosEx - by iTorran - 28.02.2012, 09:18
Re: SetPlayerPosEx - by Ballu Miaa - 28.02.2012, 09:22
Re: SetPlayerPosEx - by Ballu Miaa - 28.02.2012, 10:00
Re: SetPlayerPosEx - by Ballu Miaa - 28.02.2012, 11:04
Re: SetPlayerPosEx - by [HK]Ryder[AN] - 28.02.2012, 11:09
Re: SetPlayerPosEx - by Shadow_ - 28.02.2012, 11:16
Re: SetPlayerPosEx - by Niko_boy - 28.02.2012, 12:42
Re: SetPlayerPosEx - by Ballu Miaa - 28.02.2012, 12:50
Re: SetPlayerPosEx - by Y_Less - 28.02.2012, 13:04
Re: SetPlayerPosEx - by Ballu Miaa - 28.02.2012, 13:23
Re: SetPlayerPosEx - by legodude - 28.02.2012, 20:05
Re: SetPlayerPosEx - by Ballu Miaa - 29.02.2012, 02:26
Re: SetPlayerPosEx - by willzyyy - 29.02.2012, 04:01
Re: SetPlayerPosEx - by Ballu Miaa - 29.02.2012, 05:20
Re: SetPlayerPosEx - by Jochemd - 16.03.2012, 13:38
Re: SetPlayerPosEx - by Ballu Miaa - 16.03.2012, 16:45
Re: SetPlayerPosEx - by kacper55331 - 16.03.2012, 21:14
Re: SetPlayerPosEx - by Ballu Miaa - 23.03.2012, 00:40
Re: SetPlayerPosEx - by Krx17 - 23.03.2012, 00:56
Re: SetPlayerPosEx - by Crazymax - 29.04.2012, 17:54
Respuesta: SetPlayerPosEx - by irinel1996 - 29.04.2012, 22:11
Re: SetPlayerPosEx - by lucas_mdr1235 - 29.04.2012, 22:39
Re: SetPlayerPosEx - by rscaerzx - 29.04.2012, 23:42
Re: SetPlayerPosEx - by Ballu Miaa - 30.04.2012, 16:00
Re: SetPlayerPosEx - by FalconX - 01.05.2012, 19:35
Re: SetPlayerPosEx - by Ballu Miaa - 02.05.2012, 02:05

Forum Jump:


Users browsing this thread: 9 Guest(s)