SA-MP Forums Archive
Question - 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: Question (/showthread.php?tid=135080)



Question - DarkPower - 18.03.2010

Is there any function to check if is player on wather?


Re: Question - Carlton - 18.03.2010

Did you mean weather? If so, then no. But it can be scripted though.


Re: Question - DarkPower - 18.03.2010

Quote:
Originally Posted by Carlton
Did you mean weather? If so, then no. But it can be scripted though.
Yes on weather, can you give me example how to do it


Re: Question - Carlton - 18.03.2010

Quote:
Originally Posted by DarkPower
Quote:
Originally Posted by Carlton
Did you mean weather? If so, then no. But it can be scripted though.
Yes on weather, can you give me example how to do it
Yes. I just made this code while replying to this so sorry for the long reply

pawn Код:
new pweather[MAX_PLAYERS];
 
stock SetPlayerWeatherEx(playerid, weatherid) {
  SetPlayerWeather(playerid, weatherid);
  pweather[playerid] = weatherid;
}

stock GetPlayerWeather(playerid) {
   return pweather[playerid];
}
A example usage is like this:

pawn Код:
public OnPlayerConnect(playerid) {
   new joinweather, stringsize[15];
   SetPlayerWeatherEx(playerid, -66);
   joinweather = GetPlayerWeather(playerid);
   format(stringsize, sizeof(stringsize), "Your weather is %d", joinweather);
   SendClientMessage(playerid, 0xFFFFFF, stringsize);
}



Re: Question - DarkPower - 18.03.2010

f*** srry for my bad english i was think for WATHER srry


Re: Question - Carlton - 18.03.2010

Quote:
Originally Posted by DarkPower
f*** srry for my bad english i was think for WATHER srry
Water or Weather?


Re: Question - DarkPower - 18.03.2010

Quote:
Originally Posted by Carlton
Quote:
Originally Posted by DarkPower
f*** srry for my bad english i was think for WATHER srry
Water or Weather?
Water, where you on boat XD only way to say what i mean XD


Re: Question - Carlton - 18.03.2010

Quote:
Originally Posted by DarkPower
Quote:
Originally Posted by Carlton
Quote:
Originally Posted by DarkPower
f*** srry for my bad english i was think for WATHER srry
Water or Weather?
Water, where you on boat XD only way to say what i mean XD
Then no it's not possible.


Re: Question - DarkPower - 18.03.2010

but how some peoples make fish system and when you not on water its say, You must be on water


Re: Question - Carlton - 18.03.2010

Quote:
Originally Posted by DarkPower
but how some peoples make fish system and when you not on water its say, You must be on water
They mean you must be in a certain location.