SetPlayerPos
#1

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 ^^
Reply
#2

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?
Reply
#3

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

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

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

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

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

.... please give me strengh i suggest using the wiki
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)