pawn Код:
if(strcmp(cmd, "/aclima", true) == 0)
{
new aname[MAX_PLAYER_NAME], Previsao;
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(!strcmp(aname,"PT",true))
{
Previsao = random(sizeof(WeatherName));
if(Previsao >= 1 && Previsao <= 50)
{
SetWeather(Previsao);
}
format(string, sizeof(string), "O clima de hoje й: %s", WeatherName[Previsao]);
SendClientMessageToAll(0xFFFFFFAA, string);
}
else SendClientMessage(playerid, Vermelho, "Vocк nгo e o PT!");
return 1;
}