Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Script Created By Senior S
- //You are able to edit it as you pleasure
- //Translations:
- destroyed = "are destroyed";
- players_nearby = "Players nearby:";
- location_nearby = "Location nearby:";
- //Arrays: Only edit the first!!!
- webhook_url = "INSERT_YOUR_WEBHOOK_URL";
- avatar = "https://www.iconninja.com/files/896/676/925/car-vehicles-drive-automobile-icon.png";
- players = array();
- name = 0;
- pos = 0;
- vdestroyed = 0;
- event onInterval(1){
- foreach(vehicle in vehicleManager.vehicles){
- if(vehicle.health == 0){
- name = vehicle.name;
- pos = vehicle.position;
- vdestroyed = 1;
- vehicle.destroy();
- discord.send("`" + name + "` " + destroyed, webhook_url, "VehicleDestroyedInfo", avatar);
- }
- }
- foreach(loopPlayer in server.players){
- if(vdestroyed == 1 and v3.distance(pos, loopPlayer.position) < 8){
- players.add(loopPlayer.name);
- pnearby = loopPlayer.getNearestLocation();
- discord.send("`" + players_nearby + "` -" + players[0] + " -" + players[1] + " -" + players[2] + " -" + players[3] + " -" + players [4], webhook_url, "VehicleDestroyedInfo", avatar);
- discord.send("`" + location_nearby + "` " + pnearby, webhook_url, "VehicleDestroyedInfo", avatar);
- vdestroyed = 0;
- players.remove(loopPlayer.name);
- }
- }
- }
- event onPlayerQuit(player){
- players.remove(player.name);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement