28.02.2012, 09:12
(
Последний раз редактировалось Ballu Miaa; 15.07.2012 в 12:14.
Причина: Released v1.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 -
- How to Use -
- Installation -
- 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
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! */
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
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>
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