anti hydra zone
#1

well i made this

Код:
else if(newkeys & KEY_FIRE)
  	{
  	  new Float:x, Float:y, Float:z;
		if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		{
		  if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 520)
		  {
		    if((x > -221.8796) && (x < 525.5044) && (y > 2382.287) && (y < 2592.488))
		    {
		      SetPlayerPos(playerid, x, y, z+40);
		      GivePlayerWeapon(playerid, 11, 1);
					return 1;
				}
			}
		}
	}
but the problem is when i goto the abandoned air yard to test it it does not work D=
Reply
#2

You're not getting the position of the player, use this - https://sampwiki.blast.hk/wiki/GetPlayerPos
Reply
#3

another problem would be this:
Код:
if((x > -221.8796) && (x < 525.5044) && (y > 2382.287) && (y < 2592.488))
Wouldn't you need to be at those EXACT coordinates for your setplayerpos to be called?...
Reply
#4

no becuase its using greater then less then symbols instead of ==

and lol forgot the most simple part xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)