Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Castagna96 on March 24, 2011, 09:37:51 PM

Title: RANDOM WEATHER (pawn) help please !!!
Post by: Castagna96 on March 24, 2011, 09:37:51 PM
Hi guys .. well i was tryng to make a random weather with pawno ,like in 2 minutes chage sunny to rainy ... i use timmers but i can't do it  ??? please someone can help me in this  ;D i reall need the code of random weather  :-[  .

                                                      THX for all  ;) !!!

Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: Robd on March 25, 2011, 01:02:51 AM
I haven't had any luck even making a command to set weather...
Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: Castagna96 on March 25, 2011, 01:15:02 AM
mm , i had seen a server with pawn that have random weather in apwno, also the RPG server realise (miami-roleplay) ,have this ... but thaks anyway ;)   sorry for my poor inglish  ::)
Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: BIG[H] on March 25, 2011, 08:09:50 AM
its lendengdary RPG / miami dade role play.. its shadow server he and me scripted its its COOl but easy way is
login as rcon admin
/admin your-rcon-password-here-form-server.cfg
then type
/setweather 1
you can 1 - 4 like for sun type 4 for fog type 3 for rain type 2 etc!
Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: Skirmant on March 25, 2011, 08:52:17 AM
Lemme guess. Pawn doesn't support changing weather yet?
I don't see why you want to make the weather random. If you can just make it repeat it self in a certain pattern.

Announce a new global variable.

new w = 0

Make a timer that runs the function every 60 secs.

QuoteSetTimer("WeatherChange",60000,1);

Make the function.

WeatherChange() {
if (w == 10) w = 0;
SendRconCommand("setweather %i",w);
w++;
}
}


Actually that was what I wanted to say until I tested it and found out that SendRconCommand is another hoax function to make pawn more attractive.
The only obvious way you could pull off a random scripted weather is by ether getting a Squirrel server or connecting mIRC onto the server. Good luck.

F*ckin' lazy ass devs.
Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: BIG[H] on March 25, 2011, 10:44:04 AM
by Skirmant
QuoteSetTimer("WeatherChange",60000,1);
May be i would make timer seconds Easy

Ex
SetTimer("WeatherChange",1000*60*1,1); //it is 1 min repeating timer
SetTimer("WeatherChange",1000*60*3,1); //it is 3 min repeating timer
SetTimer("WeatherChange",1000*60*5,1); //it is 5 min repeating timer
Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: killvn1 on March 27, 2011, 04:17:46 AM
I Try add script ! No Error but SendRConCommands not Work ? I Test for a week but SendRconCommands not work ....  >:( >:( >:( ! Why SendRConCommands not Work in Pawno ??? :-* :-* :-*
Title: Re: RANDOM WEATHER (pawn) help please !!!
Post by: Robd on March 27, 2011, 07:07:46 AM
SendRconCommand is bugged and there's no weather function so your screwed.