GetXYInFrontOfPlayer don't work?
#1

Код:
	  if(GetPlayerSpecialAction(zmogus) != SPECIAL_ACTION_CUFFED)
	  {
		 new Float:x, Float:y, Float:z;
	     TogglePlayerControllable(zmogus, false);
	     SetPlayerSpecialAction(zmogus, SPECIAL_ACTION_CUFFED);
		 SetPlayerFacingAngle(zmogus, playerid);
		 GetPlayerPos(playerid, x, y, z);
		 GetXYInFrontOfPlayer(playerid, x, y, 0.5);
		 SetPlayerPos(zmogus, x, y, z);
		 ApplyAnimation(playerid, "GANGS", "hndshkfa", 4.1, 0, 0, 0, 0, 0, 1);
	     Talk(playerid, "You're under arrest!");
	     return 0;
	  }
"zmogus" should appear in front of me, but it doesn't. Any solutions?
Reply
#2

if you meant that the player didnt appear than zmogus didnt hold the right id
if you meant that the player teleported not in front of you, thats mostsly because of the low distance (0.5)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)