27.02.2013, 00:51
pawn Код:
CMD:tempo(playerid, params[])
{
new
Temp
;
if(sscanf(params, "us", Temp))
return SendClientMessage(playerid, Vermelho, "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;
}
pawn Код:
SetWorldTime(NT(Temp));