SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 07/06/2011, 02:23 PM   #1
blackwidow18
Little Clucker
 
Join Date: May 2011
Location: United States, Mass
Posts: 22
Reputation: 1
Default Realistic Nuclear Bomb Script

Realistic Nuke Sript
Version 0.2.5

Players can do /makenuke at 1 of 4 locations
  • Trucking HQ by GS in Flint
  • Ocean Docks Wharehouse (far back right side)
  • Blueberry Building (will add image)
  • TBH forgot the last area
  • RCON Admin Teleport to nukes
Current Features
  • /makenuke
  • /launchnuke
  • easy editiable for /destroynuke
  • general fallout
  • vehicle detection for fallout health declining
Planned Features
  • RF Zones (Depending are area fallout is thicker + causes more health drop)
  • DHS (Counter-Terrorism) support (fully instated)
  • Vehicle stalls after excessive exposure to radiation.

Command List:
/makenuke - create a nuke at the spawn point. Takes 2 mins
/launchnuke - launches the nuke.
/nukea - Takes RCON admin to nuke location A
/nukeb - Takes RCON admin to nuke location B
/nukec - Takes RCON admin to nuke location C
/nuked - Takes RCON admin to nuke location D
/nonuke - RCON admin cancels current nuke

Screenshots:
Screen 1 - One of the nuke site
Screen 2 - another nuke site
Screen 3 - another nuke site
Screen 4 - Map of one site
Screen 5 - Fallout (realistically, can be called debris as fallout is not visible)

0.2 Updates:
  • Lag Reduction
  • RCON Admin Commands
  • Disable / Enable Health Loss in fallout (Enabled by Deafult)

Additional Notes:
I run this on a dedicated box with 12gb of ram and 6core i5 proc, it doesn't lag out, however on my other dedi with 4gb ram and 3cores it will sometimes lag out the server, this is because it is constantly checking where players are, and if they are in a vehicle. I will update this script for better effectiveness.
====================

V. 0.1
Pastebin: http://pastebin.com/nYE9tZEW
V. 0.2
Pastebin: http://pastebin.com/0YmDXtXf
Mirror: DOWNLOAD
Mirror: DOWNLOAD
V. 0.2.5
Pastebin
Download (amx+pwn+foreach zip)
Foreach (samp thread)
Other:

This is my first public script; positive feedback welcome and encouraged.

Last edited by blackwidow18; 09/07/2011 at 06:16 PM. Reason: Updated Script
blackwidow18 is offline   Reply With Quote
Old 07/06/2011, 02:30 PM   #2
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 976
Reputation: 39
Default Re: Realistic Nuclear Bomb Script

Good work bro! Ill give you 10/10 if your a beginner! If not, 8/10
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Old 07/06/2011, 02:31 PM   #3
Phanto90
Huge Clucker
 
Phanto90's Avatar
 
Join Date: Mar 2011
Location: Milan, Italy
Posts: 352
Reputation: 31
Default Re: Realistic Nuclear Bomb Script

Lacks of video or at least screenshot!
Nice post attract more user, and this is really too simple

However nice job.

I suggest you some part to correct:
Code:
                if(GetVehicleModel(vehicleid) == 523) // Open Top
                        {
            new Float:hp;
                GetPlayerHealth(i,hp);
                        SetPlayerHealth(i,(hp-3));
                        SetPlayerDrunkLevel (i, 5000);
                        fallouthp = SetTimer("Fallout",6000,false);
                }
You did this for a lot of vehicle, insert the same function. So simply do this:
Code:
                if(GetVehicleModel(vehicleid) == id || GetVehicleModel(vehicleid) == id2 || GetVehicleModel(vehicleid) == id3 ) // Open Top
                        {
            new Float:hp;
                GetPlayerHealth(i,hp);
                        SetPlayerHealth(i,(hp-3));
                        SetPlayerDrunkLevel (i, 5000);
                        fallouthp = SetTimer("Fallout",6000,false);
                }
__________________


Latest Releases
FilterscriptsIncludesMaps
PRaceSystem v1.3 PBlock v1.1Electronic Shop
PVotekick v1.1PInventory v1.1
________________________
I don't script for money, stop asking for it.

Phanto90 is offline   Reply With Quote
Old 07/06/2011, 02:32 PM   #4
Meinstad
Gangsta
 
Meinstad's Avatar
 
Join Date: Sep 2010
Location: Northpole
Posts: 649
Reputation: 31
Default Re: Realistic Nuclear Bomb Script

Looks good. Testing now
__________________
Meinstad is offline   Reply With Quote
Old 07/06/2011, 02:35 PM   #5
XFlawless
Guest
 
Posts: n/a
Default Re: Realistic Nuclear Bomb Script

Good job why not use foreach ?
  Reply With Quote
Old 07/06/2011, 02:37 PM   #6
blackwidow18
Little Clucker
 
Join Date: May 2011
Location: United States, Mass
Posts: 22
Reputation: 1
Default Re: Realistic Nuclear Bomb Script

Quote:
Originally Posted by Phanto90 View Post
Lacks of video or at least screenshot!
Nice post attract more user, and this is really too simple

However nice job
I suggest you some part to correct:
Code:
                if(GetVehicleModel(vehicleid) == 523) // Open Top
                        {
            new Float:hp;
                GetPlayerHealth(i,hp);
                        SetPlayerHealth(i,(hp-3));
                        SetPlayerDrunkLevel (i, 5000);
                        fallouthp = SetTimer("Fallout",6000,false);
                }
You did this for a lot of vehicle, insert the same function. So simply do this:
if(GetVehicleModel(vehicleid) == id || GetVehicleModel(vehicleid) == id2 || GetVehicleModel(vehicleid) == id3 ) // Open Top
{
new Float:hp;
GetPlayerHealth(i,hp);
SetPlayerHealth(i,(hp-3));
SetPlayerDrunkLevel (i, 5000);
fallouthp = SetTimer("Fallout",6000,false);
}

Thanks, I will make that note for when I address the other issues.
I will record a video place a screen shot shortly when I get home later on.


Thanks for the feedback.
blackwidow18 is offline   Reply With Quote
Old 07/06/2011, 02:37 PM   #7
gamer931215
High-roller
 
gamer931215's Avatar
 
Join Date: Feb 2010
Location: That box in front of your house stealing your wifi.
Posts: 1,274
Reputation: 307
Default Re: Realistic Nuclear Bomb Script

pawn Code:
C:\Users\Jonathan\Desktop\stuff\SAMP SERVER\filterscripts\test.pwn(71) : warning 213: tag mismatch
C:\Users\Jonathan\Desktop\stuff\SAMP SERVER\filterscripts\test.pwn(345) : warning 213: tag mismatch
C:\Users\Jonathan\Desktop\stuff\SAMP SERVER\filterscripts\test.pwn(355) : warning 213: tag mismatch
C:\Users\Jonathan\Desktop\stuff\SAMP SERVER\filterscripts\test.pwn(364) : warning 213: tag mismatch
C:\Users\Jonathan\Desktop\stuff\SAMP SERVER\filterscripts\test.pwn(373) : warning 213: tag mismatch
C:\Users\Jonathan\Desktop\stuff\SAMP SERVER\filterscripts\test.pwn(384) : warning 203: symbol is never used: "Engine"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.

Tip:
-Remove engine[MAX_VEHICLES] (i can see you ripped this script out of a gamemode i guess ?)
-If you are using true/false, use a bool like this
pawn Code:
new bool:nuke = false;
new bool:nukea = false;
new bool:nukeb = false;
new bool:nukec = false;
new bool:nuked = false;
,


also i think if someone would create a nuke, everyone can actually launch it!
it doesnt create the author of the nuke.
__________________

Thanks to Zh3r0 for this awesome signature!
gamer931215 is offline   Reply With Quote
Old 07/06/2011, 02:40 PM   #8
blackwidow18
Little Clucker
 
Join Date: May 2011
Location: United States, Mass
Posts: 22
Reputation: 1
Default Re: Realistic Nuclear Bomb Script

Kinda; I made this into an older gamemode script. When i started working on my own i remove this script out of the old gamemode into this filterscript.

The engine part i forgot about that. That was a feature i was working on, where after so much time a vehicle engine is turned on and exposed to fallout it causes the vehicle to stall.


Thank you for the Tip!
blackwidow18 is offline   Reply With Quote
Old 07/06/2011, 02:45 PM   #9
gamer931215
High-roller
 
gamer931215's Avatar
 
Join Date: Feb 2010
Location: That box in front of your house stealing your wifi.
Posts: 1,274
Reputation: 307
Default Re: Realistic Nuclear Bomb Script

However the effect is pretty nice, good choise of weatherid and drunkcam!

Screenshot for the people who are interested :
__________________

Thanks to Zh3r0 for this awesome signature!
gamer931215 is offline   Reply With Quote
Old 07/06/2011, 05:31 PM   #10
Drza
Big Clucker
 
Drza's Avatar
 
Join Date: Apr 2011
Location: Indonesia
Posts: 94
Reputation: 0
Default Re: Realistic Nuclear Bomb Script

Nice Work, This Is So Awesome Man
__________________
Quote:
Originally Posted by Drza
Drza is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HD] First nice SA-MP Nuke/Nuclear missile script (NO MODS) DaneAMattie Screenshots and Videos 37 22/04/2012 09:14 AM
nuclear bomb Headshot1108 Help Archive 4 06/04/2010 12:46 PM
nuclear bomb Jason_Borne420 Help Archive 3 10/10/2009 09:15 PM
Any one? Bomb Script robanswe Help Archive 1 26/04/2009 01:48 AM


All times are GMT. The time now is 12:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.