event onPlayerChangeWeaponMode
This event is triggered when player changes the weapon mode.
Original: onPlayerChangeWeaponMode
Parameters
dictkwargs:intplayerid: the id of the player which changes the weapon mode.intprevious: the old weapon mode which was used by the player. For more information see Weapon mode.intcurrent: the new weapon mode in which player is currently using. For more information see Weapon mode.
Usage
import pyg2o as g2o
@g2o.event('onPlayerChangeWeaponMode')
async def onChangeWM(playerid, previous, current):
print(f'Player {playerid} changed wm: {previous} -> {current}')