Exclude 1 Weather ID - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Exclude 1 Weather ID (
/showthread.php?tid=102691)
Exclude 1 Weather ID -
sidhu123 - 16.10.2009
Hey!. I'm working on improving my gamemode currently. I've added a timer so the the weather randomly changes every 2 minutes. The random is from weather ID's 1 to 150.
How do I exclude Weather ID 100 but have the rest of them? (Red and Black screen)
Re: Exclude 1 Weather ID -
Luka P. - 16.10.2009
Okay, this is example
pawn Код:
new rand = random(bla bla);
if(!rand == 100)
{
//Now copy your code here
return 1;
}
Sorry, I don't have time to explain you this now