14.10.2012, 15:38
I have this command And I want to convert it to ZCMD
Can any one help me
Can any one help me

Код HTML:
if(strcmp(cmd, "/say", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[800];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/say [message]");
return 1;
}
format(string, sizeof(string), "Admin: %s",result);
OOCNews(0x3399FFAA,string);
}
else
{
SendClientMessage(playerid, COLOR_WHITE,"You cant use this command");
return 1;
}
}
return 1;
}

