Anonymous
public text v1 · immutablenew cmd2[256];
new idx2;
cmd2 = strtok(cmdtext, idx2);
if(strcmp(cmd, "/weather", true)==0 && loggedin[playerid])
{
new name2[24];
GetPlayerName(playerid,name2,24);
new tmp[256];
tmp = strtok(cmdtext, idx2);
new id = strval(tmp);
SetWeather(id);
format(tmp, sizeof(tmp), "%s has set the weather to %d", name2, id);
SendClientMessageToAll(0x33FFFFAA, tmp);
return 1;
}