581 B
581 B
event onPlayerMessage
This event is triggered when a player types the message on the chat.
Original: onPlayerMessage
Parameters
dictkwargs:intplayerid: the id of the player who typed the message.strmessage: the message typed by the player.
Usage
import pyg2o as g2o
@g2o.event('onPlayerMessage')
async def onMessage(playerid, message):
print(pyg2o.getPlayerName(playerid), ' says ', message)