23.01.2013, 12:02
pawn Код:
if(strcmp(cmd, "/tempo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
return true;
}
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/jogar)");
return true;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USE: /tempo [tempo id]");
return true;
}
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new weather;
weather = strval(tmp);
if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, " Tempo id de 0 ~ 45 !"); return true; }
SetWeather(weather);
SendClientMessage(playerid, COLOR_GREY, "Tempo setado!");
}
return true;
}

