Weapons Detect
#1

How i detect if player is holding weapons in hand?
Reply
#2

GetPlayerWeapon
GetPlayerWeaponData
Reply
#3

Yes , and how i can just to put some weapon in player hand if you get me xD
Ex: IfPlayerToPoint(playerid, bla bla bla) how i can set that player cannot hold weapon , not to reset , just to player cannot hold weapon ?: )
Reply
#4

here example

pawn Code:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, Float:Size,Float:X,Float:Y,Float:Z))
    {
     if(GetPlayerWeapon(playerid))
     {
       ResetPlayerWeapons(playerid);
       GameTextForPlayer(playerid, "You Cannot Have A Weapon On This Cordinates !", 3000, 1);
       return 1;
      }
    }
  return 1;
}
Reply
#5

Yes , but ResetPlayerWeapons will remove player weapons ? .. I don't wanna remove it , just if player scrools on weapon , server will auto move to first (n/a) id 0 ..
Reply
#6

SetPlayerArmedWeapon, use it on OnPlayerUpdate and check if he is in that area, and if he is, just SetPlayerArmedWeapon to 0.
Reply
#7

Yes , i just was too retarded to find a function -.- .. Thank's guys .. REP +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)