09.01.2010, 16:40
where?
But, i've got this command working:
But, i've got this command working:
pawn Код:
CMD:settime(playerid, params[])
{
if (pLevel[playerid] >= 1)
if (strval(params) >= 24)
{
SendClientMessage( playerid, 0xFF0000FF, "USAGE: /settime <0/23>!" );
}
else
{
new tmp[256], tmp2[256],Index;
tmp = strtok(params,Index);
tmp2 = strtok(params,Index);
SetWorldTime(strval(params));
new string[256];
format(string, sizeof(string), "The time now is: %d:00", strval(params));
SendClientMessage(playerid, 0xDAA520FF, string);
}
return 1;
}