22.04.2009, 10:39
Quote:
Originally Posted by MenaceX^
He can't, stop bullshiting him, he'll ruin his script because of what you're saying.
|
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;
}