10.10.2016, 12:38
(
Последний раз редактировалось CrowleyNWD; 11.10.2016 в 00:07.
)
PHP код:
#include <zcmd>
#include <sscanf>
CMD:clima(playerid, params[])
{
new clima;
new adminname[24], string[128];
GetPlayerName(playerid, adminname, 24);
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "[ x ] Vocк nгo tem permissгo!");
if(sscanf(params, "d",clima)) return SendClientMessage(playerid, 0xFF0000AA, "[ x ] Uso correto: /Clima [ID do Clima]");
SetWeather(clima);
format(string, 128, "[ > ] O administrador %s alterou o clima.", adminname);
SendClientMessageToAll( 0x00FF66AA , string);
PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 );
return 1;
}