SA-MP Forums Archive
[help] weather commands - 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: [help] weather commands (/showthread.php?tid=151387)



[help] weather commands - [asg]davo - 30.05.2010

OK i need to no how to add weather commands so like i do /sunny and the weather will change to sunny

note: I only want admins to be able to change the weather
note: i need u to post at lieast one so i can add more thanks

and i no the weather ids

thankyou


Re: [help] weather commands - DJDhan - 30.05.2010

Under OnPlayerCommandText function:

Код:
if(!strcmp(cmdtext, "/sunny", true))
{
 if(IsPlayerAdmin(playerid))
 {
  SetWeather(1);
  return 1;
 }
 else return SendClientMessage(playerid,0xffffffaa,"You are not an Admin");
}



Re: [help] weather commands - Flashy - 30.05.2010

I advice you to learn the basics of PANWO and search maybe what you donґt know.
There is a nice and easy website wre you can look at all functions.
Make a command for weather and so on is the easiest thing.

https://sampwiki.blast.hk/wiki/SetWeather

Read and try it one your own.


Re: [help] weather commands - [asg]davo - 30.05.2010

Ok thankyou all I no alof of pawno but not weather thankyou all

Ooh also how to make it say to everyone Like say I changed it will say [asg]davo has changed the weather to sunny

thankyou


Re: [help] weather commands - Flashy - 30.05.2010

Use SendClientMessageToAll.

https://sampwiki.blast.hk/wiki/SendClientMessageToAll




Re: [help] weather commands - [asg]davo - 30.05.2010

Thx all good now