public OnPlayerUpdate(playerid) { if(GetPlayerWeapon(playerid) != WeaponIDFromInventory[playerid]) { SetPlayerArmedWeapon(playerid, WeaponIDFromInventory[playerid]); } }