Hello,
I would like to request a script...
I would like like it to be a /help command, So when people type /help it displays a message of my choice...
Thanks,
Jake
You could have done that yourself, there's even an example command in the example script (mode.pwn).
@to OnPlayerCommandText
if(strcmp(cmdtext,"help",true) == 0)
{
SendClientMessage(playerid,0xFFFFFFFF,"Your message...");
return true;
}
Its not working when i type /help?
/c help
Should i put it anywhere within the onplayercommand section?
When i type /c help in the game nothing happens...
Thanks,
Jake
Yes, put it anywhere in OnPlayerCommandText.