hey , you can help me ? i want to set weather in only area.
#1

I can set weather only in the area ? How to do ?

please help me.
Reply
#2

You can't.
Reply
#3

use IsPlayerInArea
Reply
#4

Quote:
Originally Posted by Vetle
use IsPlayerInArea
i don't know position for area and how to set weather in script IsPlayerInArea
Reply
#5

Quote:
Originally Posted by MenaceX^
You can't.
Reply
#6

Quote:
Originally Posted by Vetle
use IsPlayerInArea
He can't, stop bullshiting him, he'll ruin his script because of what you're saying.
Reply
#7

Quote:
Originally Posted by MenaceX^
He can't, stop bullshiting him, he'll ruin his script because of what you're saying.
Of course he can! \/ \/

pawn Код:
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;
}
Reply
#8

theres no such thing as setplayerweather
Reply
#9

The function does exist and y'all should actually learn what you are on about before answering questions.

Quote:
Originally Posted by R4nk3d
theres no such thing as setplayerweather
Wtf, you're the idiot dude.
Reply
#10

Quote:
Originally Posted by Donny
The function does exist and y'all should actually learn what you are on about before answering questions.
+1,

This function does exist, just set a timer somewhere use isplayerinarea, and than set the players weather.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)