01.02.2016, 23:35
Need help converting this strcmp to zcmd.
As always, who ever helps will get +1 Rep.
Cheers, thanks for your time.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[64], temp1, temp2;
if (strcmp(cmdtext, "/gatemode", true, 9) == 0)
{
if (strlen(cmdtext[10]) == 0)
{
SendClientMessage(playerid, 0xFFFF00FF, "Usage: /gatemode 0 = commands, 1 = automatic");
return 1;
}
temp1 = strval(cmdtext[10]);
if (temp1 != 0 && temp1 != 1)
{
SendClientMessage(playerid, 0xFFFF00FF, "Usage: /gatemode 0 = commands, 1 = automatic");
return 1;
}
Cheers, thanks for your time.