Make command with 2 slashes // [test]
#4

Use "strcmp" under OnPlayerCommandText

Код:
example:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmd, "//imanoob", true))
{
    SendClientMessage(playerid, 0xFFFFFF, "Yep!");
}
return 1;
}
Reply


Messages In This Thread
Make command with 2 slashes // [test] - by ScIrUsna - 25.03.2016, 05:49
Re: Make command with 2 slashes // [test] - by SamJust - 25.03.2016, 09:22
Re: Make command with 2 slashes // [test] - by ScIrUsna - 25.03.2016, 11:25
Re: Make command with 2 slashes // [test] - by K0P - 25.03.2016, 12:09
Re: Make command with 2 slashes // [test] - by ScIrUsna - 25.03.2016, 12:12
Re: Make command with 2 slashes // [test] - by UltraScripter - 25.03.2016, 12:45
Re: Make command with 2 slashes // [test] - by UltraScripter - 25.03.2016, 13:18
Re: Make command with 2 slashes // [test] - by ScIrUsna - 25.03.2016, 14:19
Re: Make command with 2 slashes // [test] - by MicroKyrr - 25.03.2016, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)