SA-MP Forums Archive
SetPlayerPos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerPos (/showthread.php?tid=310773)



SetPlayerPos - davve95 - 13.01.2012

Hi!

I go inside sa-mp debug and type /save, And you will get a addplayerclass blablabla.
But I just want SetPlayerPos but I don't know what I should delete the code ^^.

Some codes here you can show me with:

pawn Код:
AddPlayerClass(283,-1990.5095,379.1384,35.1787,270.9169,0,0,0,0,0,0); // ammo utanfцr/ammo outside
AddPlayerClass(283,286.2589,-41.4669,1001.5156,177.0206,0,0,0,0,0,0); // ammo gе ut/ammo go outside.
Код:
Thanks alot, And I hope you know what I mean ^^



Re: SetPlayerPos - Voldemort - 13.01.2012

AddPlayerClass(283,-1990.5095,379.1384,35.1787,270.9169,0,0,0,0,0,0); // ammo utanfцr/ammo outside
AddPlayerClass(283,286.2589,-41.4669,1001.5156,177.0206,0,0,0,0,0,0); // ammo gе ut/ammo go outside.


SetPlayerPos(playerid,-1990.5095,379.1384,35.1787);
SetPlayerPos(playerid,286.2589,-41.4669,1001.5156);

is this what you mean?


Re: SetPlayerPos - davve95 - 13.01.2012

Yea I think so, so its just to delete the zeros??. Thanks alot for your help.. Yes I mean like that if its just set player pos and not other..


Re: SetPlayerPos - CmZxC - 13.01.2012

SetPlayerPos(playerid, X,Y,Z);
AddPlayerClass(skinid, X,Y,Z,rotation,wep1,w1ammo,w2,w2ammo,w3,w3ammo);

You need only the X, Y and Z.


Re: SetPlayerPos - nmader - 13.01.2012

As you were informed, simply delete everything except the X, Y, and Z, not just the zeros, as there is one digit after the X,Y, and Z axis'.


Re: SetPlayerPos - davve95 - 13.01.2012

Quote:
Originally Posted by CmZxC
Посмотреть сообщение
SetPlayerPos(playerid, X,Y,Z);
AddPlayerClass(playerid, X,Y,Z,rotation,wep1,w1ammo,w2,w2ammo,w3,w3ammo);

You need only the X, Y and Z.
Okay thanks!, I don't know where X,Y,Z should be xD I just know where skin id is (The first one in beginning I think. Hmm it would be good if I had a picture that shows xD.. But thanks alot to you to..


Re: SetPlayerPos - CmZxC - 13.01.2012

AddPlayerClass = 1st - Skin(sry my bad for playerid) , 2nd - X , 3rd - Y, 4th - Z.

Now you know that usage for AddPlayerClass is
pawn Код:
AddPlayerClass(skinid, X, Y, Z, Rotation, Weap1, Weap1ammo, Weap2, Weap2ammo, Weap3, Weap3ammo);
So, all you need to get from the "addplayerclass" is the 2nd, 3rd and 4th row which are X Y and Z
and that's as easy as it can get.


Re: SetPlayerPos - legho - 13.01.2012

.... please give me strengh i suggest using the wiki


Re: SetPlayerPos - Kontrol - 13.01.2012

heres the code
Код:
SetPlayerPos(playerid,-1990.5095,379.1384,35.1787); // ammo utanfцr/ammo outside
SetPlayerPos(playerid,286.2589,-41.4669,1001.5156);
Now look an analyize what the XYZ Coords are..

+Respect please.



Re: SetPlayerPos - davve95 - 14.01.2012

Quote:
Originally Posted by Kontrol
Посмотреть сообщение
heres the code
Код:
SetPlayerPos(playerid,-1990.5095,379.1384,35.1787); // ammo utanfцr/ammo outside
SetPlayerPos(playerid,286.2589,-41.4669,1001.5156);
Now look an analyize what the XYZ Coords are..

+Respect please.
Okay thank you alot!. And also thanks to the orhers