10.03.2018, 10:00
Voce poderia usar isso aqui.
https://sampforum.blast.hk/showthread.php?tid=222283
Код:
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, 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; }
Код:
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, 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; } [..] if(IsPlayerInArea(playerid, 2059.889648, -1158.775512, 2299.889648, -958.775512 )) { GivePlayerWeapon( playerid, 31, 99999 ); GivePlayerWeapon( playerid, 24, 99999 ); GivePlayerWeapon( playerid, 29, 99999 ); GivePlayerWeapon( playerid, 27, 99999 ); GivePlayerWeapon( playerid, 34, 99999 ); }