24.05.2018, 17:09
Hey, as the title says. I would like to get a simple example on how to show the command player uses through irc.
For example:
A player used /admins in-game. Then on an irc channel for example #commands, a message should appear like "PlayerName[id] typed /admins.
Or
A player used "/pm 0 Hello". Then it should appear on the irc "PlayerName[id] typed /pm 0 Hello!.
How to exactly make a string using the callback :
A simple help and example would work, with few explanations if you please. I am pretty new on scripting, so thanks for the help.
For example:
A player used /admins in-game. Then on an irc channel for example #commands, a message should appear like "PlayerName[id] typed /admins.
Or
A player used "/pm 0 Hello". Then it should appear on the irc "PlayerName[id] typed /pm 0 Hello!.
How to exactly make a string using the callback :
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)