04.06.2014, 08:17
You can use OnPlayerUpdate or A timer that checks if the player is in range and if it is, you'll set the the fist. It'll look like:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(...)) //If they are in the range that you want
{
if(GetPlayerWeapon(playerid)!=0) //If They have another weapon beside fist
{
SetPlayerArmedWeapon(playerid,0); //Set their armed weapon to fist
}
}
}

