how to make a player cannot use weapon in a area
#1

as said
Reply
#2

You need to have streamer plugins and include.

pawn Код:
// example
new Zone1;

public OnGameModeInit()
{
    Zone1 = CreateDynamicRectangle(minx, miny, maxx, maxy, -1, -1, -1);
    // minx, miny, maxx, maxy : get these coordinates by using a gangzone creator.
    return 1;
}

public OnPlayerEnterDynamicArea(playerid, areaid)
{
    if(areaid == Zone1) // if he is in zone1
    {
        ResetPlayerWeapons(playerid);// remove his weapons
    }
    return 1;
}

public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    if(areaid == Zone1) // if he is not in zone 1
    {
        GivePlayerWeapon(playerid, ...); // give him weapons
    }
    return 1;
} // matnix
Correct me if I'm wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)