detect gun
#4

you can use this one:
PHP код:
public OnPlayerUpdate(playerid)
{
    new 
iCurWeap GetPlayerWeapon(playerid);    
    if(
iCurWeap != GetPVarInt(playerid"iCurrentWeapon")) 
    {
        
OnPlayerChangeWeapon(playeridGetPVarInt(playerid"iCurrentWeapon"), iCurWeap);
        
SetPVarInt(playerid"iCurrentWeapon"iCurWeap);
    }
    return 
1
}
 
stock OnPlayerChangeWeapon(playeridoldweaponnewweapon)
{
        
SetPlayerAmmo(playeridnewweapon, -1);
        
SendClientMessage(playerid0xFFFFFFFF"You Can't Chagne Your Weapon!");

Reply


Messages In This Thread
detect gun - by iBots - 07.01.2014, 20:33
Re: detect gun - by Konstantinos - 07.01.2014, 20:39
Re: detect gun - by iBots - 08.01.2014, 06:44
Re: detect gun - by amirab - 08.01.2014, 07:10
Re: detect gun - by iBots - 08.01.2014, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)