Change a command
#4

Quote:
Originally Posted by Th3Angel
Посмотреть сообщение
Just look under "OnPlayerCommandText"
Example:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/example", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Text Here");
return 1;
}
return 0;
}
To change the command, just simply change "/example" to "/" and whatever name you want it to be.
I would suggest to first learn the scripting language. Visit here: https://sampwiki.blast.hk/wiki/Category:..._Documentation
Okay thanks.
but when i rename the /gdeposit to /deposit it shows /deposit in the help menu
but the command is still /gdeposit
Reply


Messages In This Thread
Change a command - by FrankC - 16.09.2010, 23:32
Re: Change a command - by FrankC - 16.09.2010, 23:57
Re: Change a command - by Th3Angel - 17.09.2010, 00:16
Re: Change a command - by FrankC - 19.09.2010, 17:00
Re: Change a command - by Mike_Peterson - 19.09.2010, 17:09
Re: Change a command - by FrankC - 19.09.2010, 17:46
Re: Change a command - by Typhome - 19.09.2010, 17:47
Re: Change a command - by FrankC - 19.09.2010, 17:57
Re: Change a command - by Mike_Peterson - 19.09.2010, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)