[FilterScript] Tazer system. [0.3z R2]
#10

You need to include this:
pawn Код:
public OnPlayerUpdate(playerid)
{
    new iCurWeap = GetPlayerWeapon(playerid); // Return the player's current weapon    
    if(iCurWeap != GetPVarInt(playerid, "iCurrentWeapon")) // If he changed weapons since the last update
    {
        // Lets call a callback named OnPlayerChangeWeapon
        OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap);
        SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Update the weapon variable
    }
    return 1; // Send this update to other players.
}
Because there is no such callback by default.
Reply


Messages In This Thread
Tazer system. [0.3z RC2] - by Blunt - 17.01.2014, 11:31
Re: Tazer system. [0.3z R2] - by Scrillex - 17.01.2014, 12:11
Re: Tazer system. [0.3z R2] - by d0 - 17.01.2014, 12:15
Re: Tazer system. [0.3z R2] - by Diesel5 - 17.01.2014, 12:24
Re: Tazer system. [0.3z R2] - by LMagnifico - 17.01.2014, 12:37
Re: Tazer system. [0.3z R2] - by Blunt - 17.01.2014, 13:07
Re: Tazer system. [0.3z R2] - by Fenky - 13.02.2014, 03:17
Re: Tazer system. [0.3z R2] - by $Marco$ - 13.02.2014, 07:53
Re: Tazer system. [0.3z R2] - by Deathlane - 16.02.2014, 09:59
Re: Tazer system. [0.3z R2] - by wups - 16.02.2014, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)