10.11.2012, 06:54
Hey guys. I wanted to make a command which would move me slightly north(for getting past obstacles) but whenever I use it, I move like super forward and spawn at palomino. I dont understand why as I add the y value just by a small ammount and the z value too.
Please, tell me whats wrong. Thanks
Please, tell me whats wrong. Thanks
Код:
CMD:north(playerid,params[])
{
if(restrict[playerid]==1)
{
SendClientMessage(playerid,COLOR_RED,"Access denied.");
return 1;
}
new float:x,float:y,float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y+0.1,z+0.5);
return 1;
}


