Vice City Multiplayer

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

Title: Script for adding a new command...
Post by: theweirdgeek on February 26, 2010, 12:12:11 pm
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, 12:14:48 pm
You could have done that yourself, there's even an example command in the example script (mode.pwn).

@to OnPlayerCommandText
Code: [Select]
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, 12:27:16 pm
Its not working when i type /help?
Title: Re: Script for adding a new command...
Post by: Ettans on February 26, 2010, 12:31:50 pm
/c help
Title: Re: Script for adding a new command...
Post by: theweirdgeek on February 26, 2010, 12:46:08 pm
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, 01:05:37 pm
Yes, put it anywhere in OnPlayerCommandText.