Help With Weather Change Game Text
#1

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
Reply
#2

So under the thing that changes the weather do "GameTextForAll("Text..");
Reply
#3

SetWeather()
GameTextForAll()

Is what you need to search the wiki for.

WeeDarr
Reply
#4

You just need a command with SetWeather and GameTextForAll.

I was beaten too it but I provided links =p
Reply
#5

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
Reply
#6

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
Reply
#7

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
Reply
#8

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);
}
Reply
#9

You could borrow the command from debugger, and add your own gametext.
Reply
#10

Quote:
Originally Posted by Weirdosport
You could borrow the command from debugger, and add your own gametext.
how'd i do that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)