01.09.2012, 15:56
pawn Код:
CMD:setclima(playerid, params[])
{
new clima, adminname[32];
new string[128];
GetPlayerName(playerid,adminname,sizeof(adminname));
if(Player[playerid][Nivel] < 3) return SendClientMessage(playerid, -1, "[SERVER]: Comando Invalido");
if(sscanf(params,"d",clima)) return SendClientMessage(playerid, VERMELHO, "[SERVER]: Use: Setclima [id]");
SetWeather(clima);
format(string,sizeof(string),"[ADM]: O Admin: %s Setou o Clima para %d!",adminname,clima);
SendClientMessageToAll(AMARELO, string);
return 1;
}