Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: theweirdgeek on February 26, 2010, 10:12:11 AM

Title: Script for adding a new command...
Post by: theweirdgeek on February 26, 2010, 10:12:11 AM
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
Title: Re: Script for adding a new command...
Post by: Ettans on February 26, 2010, 10:14:48 AM
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;
}
Title: Re: Script for adding a new command...
Post by: theweirdgeek on February 26, 2010, 10:27:16 AM
Its not working when i type /help?
Title: Re: Script for adding a new command...
Post by: Ettans on February 26, 2010, 10:31:50 AM
/c help
Title: Re: Script for adding a new command...
Post by: theweirdgeek on February 26, 2010, 10:46:08 AM
Should i put it anywhere within the onplayercommand section?

When i type /c help in the game nothing happens...

Thanks,
Jake
Title: Re: Script for adding a new command...
Post by: Ettans on February 26, 2010, 11:05:37 AM
Yes, put it anywhere in OnPlayerCommandText.