SA-MP Forums Archive
Help me - 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: Help me (/showthread.php?tid=398758)



Help me - Ryu- - 11.12.2012

Is it possible if I use SetPlayerPos to move the player foward? If yes, please give me the codes , sorry for my bad eng


Re: Help me - Windrush - 11.12.2012

yes!
And use GetPlayerPos Too


Re: Help me - Ryu- - 11.12.2012

Quote:
Originally Posted by windrush
Посмотреть сообщение
yes!
And use GetPlayerPos Too
Can you show me the codes?


Re: Help me - Infinity90 - 11.12.2012

pawn Код:
CMD:forward(playerid,params[])
{
       new Float:x,Float:y,Float:z;
       GetPlayerPos(playerid,x,y,z);
       SetPlayerPos(playerid,x+5,y,z);
       return 1;
}



Re: Help me - jueix - 11.12.2012

Quote:
Originally Posted by Ryu-
Посмотреть сообщение
Can you show me the codes?
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid, x+ammount of forward here,y,z);



Re: Help me - Ryu- - 11.12.2012

I mean, the player can move to the coordinate in front of him. Like Blink skill of Magina in DotA


Re: Help me - frozen.iyan - 11.12.2012

Maksudnya gimana sih gan ?