08.07.2011, 11:25
There is a function, called: IsPlayerAllowedToDropBomb just replace the original:
with:
I hope I could help you.
Jeffry
pawn Код:
IsPlayerAllowedToDropBomb(playerid)
{
#pragma unused playerid
// This is used to restrict the use of bombs for single players
// For example to make them available for special teams only, ...
// bptype[playerid] is the index of the selected bomb
return 1;
}
with:
pawn Код:
IsPlayerAllowedToDropBomb(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if (X <= 464.0057 && X >= -117.3833 && Y <= 2111.7815 && Y >= 1568.7208) return 1; //In the Area, returns 1.
else return 0; //not in area, returns 0.
}
Jeffry
![Cool](images/smilies/cool.gif)