Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnPlayerWeaponMode(playerid, weaponmode)
- local p_x, p_y, p_z = GetPlayerPos(playerid);
- if GetDistance3D(p_x, p_y, p_z, 10.852104187012, 59.856369018555, -1340.2938232422) > 900 then
- if weaponmode ~= WEAPON_CBOW then
- SetPlayerWeaponMode(playerid, WEAPON_NONE);
- SendPlayerMessage(playerid,230,230,230,"Нельзя доставать оружие вне арены!");
- Player[playerid].warn = Player[playerid].warn + 1;
- end
- if Player[playerid].warn >= 5 then
- SendPlayerMessage(playerid,255,0,0,"ДМ ВНЕ АРЕНЫ ЗАПРЕЩЕН");
- Kick(playerid);
- end
- end
- end
- function OnPlayerHit(playerid, killerid)
- local message = string.format("%s %s %s",GetPlayerName(killerid),"->", GetPlayerName(playerid));
- LogString("HIT_LOG",message);
- local p_x, p_y, p_z = GetPlayerPos(killerid);
- if GetDistance3D(p_x, p_y, p_z, 10.852104187012, 59.856369018555, -1340.2938232422) > 900 then
- Player[killerid].warn = Player[killerid].warn + 1;
- end
- if Player[killerid].warn >= 2 then
- SendPlayerMessage(killerid,255,0,0,"ДМ ВНЕ АРЕНЫ ЗАПРЕЩЕН");
- Kick(killerid);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment