23.01.2013, 11:28
pawn Код:
if(strcmp(cmd, "/tod", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /tod [Hora] [Clima (0-23)]");
return 1;
}
new hour;
hour = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(PoderosoInfo[playerid][pTrampo] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}Vocк nгo estб trabalhando! {E31919}{E31919}(/jogar)");
return 1;
}
SetWorldTime(hour);
format(string, sizeof(string), " O admin %s definiu a hora para %d.",sendername,hour);
BroadCast(COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando !");
}
}
return 1;
}

