Question about a command
#1

Ok,so I have the following command

Quote:

if(strcmp(cmd, "/stp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
GetPlayerPos(playerid, rx, ry, rz);
if (IsPlayerConnected(playerid))
{
SetPlayerPos(playerid,rx+40, ry, rz+5);
SendClientMessage(playerid,COLOR_GREY," You just did a short jump !");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}

As you may see,the players it's tped 40 meters away from his X location.But I would like him to be TPed 40 meters away from the location where he is facing(front)

Anybody knows if that is possible? Thanks !
Reply


Messages In This Thread
Question about a command - by FreeSoul - 17.08.2009, 17:12
Re: Question about a command - by Eazy_Efolife - 17.08.2009, 17:13
Re: Question about a command - by FreeSoul - 17.08.2009, 17:18
Re: Question about a command - by Eazy_Efolife - 17.08.2009, 17:19
Re: Question about a command - by FreeSoul - 17.08.2009, 17:21
Re: Question about a command - by Joe Staff - 17.08.2009, 17:22
Re: Question about a command - by FreeSoul - 17.08.2009, 17:41
Re: Question about a command - by Joe Staff - 17.08.2009, 17:42
Re: Question about a command - by FreeSoul - 17.08.2009, 17:51
Re: Question about a command - by Zeex - 17.08.2009, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)