19.10.2013, 20:37
as said
// 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