Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Castagna on March 24, 2011, 11:37:51 pm

Title: RANDOM WEATHER (pawn) help please !!!
Post by: Castagna on March 24, 2011, 11: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, 03: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: Castagna on March 25, 2011, 03: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, 10: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
Code: [Select]
/admin your-rcon-password-here-form-server.cfgthen type
Code: [Select]
/setweather 1you 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, 10: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.

Code: [Select]
new w = 0
Make a timer that runs the function every 60 secs.

Quote
SetTimer("WeatherChange",60000,1);

Make the function.

Code: [Select]
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, 12:44:04 pm
by Skirmant
Quote
SetTimer("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, 05: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, 08:07:46 am
SendRconCommand is bugged and there's no weather function so your screwed.