22.04.2009, 05:54
I can set weather only in the area ? How to do ?
please help me.
please help me.
Originally Posted by Vetle
use IsPlayerInArea
|
Originally Posted by MenaceX^
You can't.
|
Originally Posted by Vetle
use IsPlayerInArea
|
Originally Posted by MenaceX^
He can't, stop bullshiting him, he'll ruin his script because of what you're saying.
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/hecandoit", cmdtext, false, 10) == 0)
{
if (IsPlayerInArea(playerid, 1996.6672, 2005.8230, 1524.2599,1561.3279)) // @Pirate Ship in Las Venturas
SetPlayerWeather(playerid, 16),
SendClientMessage(playerid, 0xBEBEBEFF, "It's raining now...");
else SetPlayerWeather(playerid, 10);
return 1;
}
}
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
Originally Posted by R4nk3d
theres no such thing as setplayerweather
|
Originally Posted by Donny
The function does exist and y'all should actually learn what you are on about before answering questions.
|