[help] weather commands
#1

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

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

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

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

Use SendClientMessageToAll.

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

Reply
#6

Thx all good now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)