23.08.2009, 15:42
These errors are because of your includes or something. You asked to transform that command into normal command and just for RCON admins. That's what i did. I will make a simple settime command for you:
Код:
if(strcmp(cmd, "/settime", true) == 0)
{
tmp=strtok(cmdtext, idx);
if(IsPlayerAdmin(playerid))
{
SetWorldTime(strval(tmp));
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "SERVER: You are not admin.");
return 1;
}
}

