27.02.2013, 00:55
pawn Код:
CMD:tempo(playerid, params[])
{
new
Temp[10]
;
if(sscanf(params, "s[10]", Temp))
return SendClientMessage(playerid, -1, "Uso й /tempo [ Nome ]");
SetWorldTime(NT(Temp));
return 1;
}
stock NT(str[])
{
new
_sk = -1
;
if(!strcmp(str, "dia", true)) _sk = 9;
if(!strcmp(str, "tarde", true)) _sk = 20;
if(!strcmp(str, "noite", true)) _sk = 24;
return _sk;
}