16.01.2014, 08:33
Hello how can I make if player leave death math zone but he is inside then if he leave that someone specific area then if he leave death match zone then he go back how can I make that if you know what I mean? Thanks
new YourZone; public OnGameModeInit() { YourZone = CreateDynamicRectangle(minx, miny, maxx, maxy, -1, -1, -1); return 1; }
forward OnPlayerEnterDynamicArea(playerid, areaid); public OnPlayerEnterDynamicArea(playerid, areaid) { if(areaid == YourZone) { GameTextForPlayer(playerid, "You are in ZONE!", 4000, 3);//text in the screen of the player ResetPlayerWeapons(playerid);//this remove arms } return 1; }
forward OnPlayerLeaveDynamicArea(playerid, areaid); public OnPlayerLeaveDynamicArea(playerid, areaid) { if(areaid == YourZone) { GameTextForPlayer(playerid, "You're exit of the area, permitted weapons!", 4000, 3);//Text in the Screen //You can add more funcions how GivePlayerWeapon.. } return 1; }