Help With Weather Change Game Text -
wilcock33 - 22.08.2009
hi all!
i have my admin script for my new server
however, there is on pirticular weather i want to have Game Text for
so i need a weather command first of all to set the weather XD
then...
if i set the weather to 90 - i want it to come up with "Welcome to Hell!"
and when i return to normal "10" it comes up with "Welcome to the Jungle!"
is this possbile?
thanks in advance
Re: Help With Weather Change Game Text -
_Vortex - 22.08.2009
So under the thing that changes the weather do "GameTextForAll("Text..");
Re: Help With Weather Change Game Text -
weedarr - 22.08.2009
SetWeather()
GameTextForAll()
Is what you need to search the wiki for.
WeeDarr
Re: Help With Weather Change Game Text -
Weirdosport - 22.08.2009
You just need a command with
SetWeather and
GameTextForAll.
I was beaten too it but I provided links =p
Re: Help With Weather Change Game Text -
wilcock33 - 22.08.2009
ive searched all over the wiki and all over the forums, and nothing -_-
the wiki had something, but it didnt tell me how to put it in my script....
i need a setweather command and gametext for player when it set as 90
i know how to set gae text (GameTextForPlayer, (playerid,"TEXT HERE",5000,0);
but i dont know how to make the game text come up ONLY WHEN THE WEATHER IS SET TO 90
Re: Help With Weather Change Game Text -
Dark_Kostas - 22.08.2009
pawn Код:
if(weatherid == 90)
{
GameTextForPlayer, playerid,"Welcome to Hell!",5000,0);
}
else if(weatherid == 10)
{
GameTextForPlayer, (playerid,"Welcome to the Jungle!",5000,0);
}
change the weatherid, with your variable you use
Re: Help With Weather Change Game Text -
wilcock33 - 22.08.2009
Quote:
|
Originally Posted by Dark_Kostas
pawn Код:
if(weatherid == 90) { GameTextForPlayer, playerid,"Welcome to Hell!",5000,0); } else if(weatherid == 10) { GameTextForPlayer, (playerid,"Welcome to the Jungle!",5000,0); }
change the weatherid, with your variable you use
|
my admin script does not have a setweather in XD
thats why i need one
Re: Help With Weather Change Game Text -
dice7 - 22.08.2009
omg, SetWeather is a samp function
https://sampwiki.blast.hk/wiki/SetWeather
And this may also come in handy
pawn Код:
stock GetWeather()
{
new a[5];
GetServerVarAsString("weather", a, sizeof(a));
return strval(a);
}
Re: Help With Weather Change Game Text -
Weirdosport - 22.08.2009
You could borrow the command from debugger, and add your own gametext.
Re: Help With Weather Change Game Text -
wilcock33 - 22.08.2009
Quote:
|
Originally Posted by Weirdosport
You could borrow the command from debugger, and add your own gametext.
|
how'd i do that?