14.02.2017, 16:40
Quote:
Thanks for your help, But it's not just about typing burg the player may type /show bu and he gets "Burger" and there is something else except burger like Journal
|
Example Code:
PHP код:
CMD:test(playerid, params[])
{
new str[16];
if(sscanf(params, "s[16]", str)) return SendClientMessage(playerid, -1, "Usage: /test [params]");
if (!strcmp(str, "burg", true))
{
// Code here
}
else if (!strcmp(str, "jour", true)) // Journal
{
// Code here
}
// Continue
return 1;
}