17.08.2009, 17:12
Ok,so I have the following command
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 !
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; } |
Anybody knows if that is possible? Thanks !