Many things
#2

Try this:

pawn Код:
#include <zs> //this contains includes I use, like a_samp, zcmd or sscanf2 and color definitions...
forward weather(playerid);
new bool:wthr[MAX_PLAYERS]; //new Boolean value
public OnGameModeInit() {
    SetTimer("weather", 60*60*1000, 1); //one hour timer
    return 1;
}
public weather(playerid) {
    if(wthr[playerid] == false) return 0;
    new wstr[40];
    new rand = random(45);
    format(wstr, sizeof(wstr), "The weather has been changed to %i!", rand);
    SendClientMessageToAll(0xAA0000AA, wstr);
    SetPlayerWeather(playerid, rand);
    return 1;
}
CMD:srw(playerid) {
    if(wthr[playerid] == true) return wthr[playerid] == false;
    if(wthr[playerid] == false) return wthr[playerid] == true;
    return 1;
}
Reply


Messages In This Thread
Many things - by Zeyo - 27.09.2012, 13:45
Re: Many things - by zombieking - 27.09.2012, 13:52
Re: Many things - by Mr.Anonymous - 27.09.2012, 14:42
Re: Many things - by Danyal - 27.09.2012, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)