Using isPlayerInArea in another script, is this possible?
#2

There is a function, called: IsPlayerAllowedToDropBomb just replace the original:

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.
}
I hope I could help you.

Jeffry
Reply


Messages In This Thread
Using isPlayerInArea in another script, is this possible? - by Gemini - 08.07.2011, 11:16
Re: Using isPlayerInArea in another script, is this possible? - by Jeffry - 08.07.2011, 11:25
Re: Using isPlayerInArea in another script, is this possible? - by Guest3598475934857938411 - 08.07.2011, 11:25
Re: Using isPlayerInArea in another script, is this possible? - by Jefff - 08.07.2011, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)