Adminlist:
AUTHID1 = "STEAM_0:0:187892";
AUTHID2 = "Steam ID Here";
AUTHID3 = "Steam ID Here";
AUTHID4 = "Steam ID Here";
AUTHID5 = "Steam ID Here";
AUTHID6 = "Steam ID Here";
AUTHID7 = "Steam ID Here";
AUTHID8 = "Steam ID Here";
AUTHID9 = "Steam ID Here";
AUTHID10 = "Steam ID Here";
AUTHID11 = "Steam ID Here";
SWEP(Blackholegun):
function onPickup( pickerup )
_OpenScript( "wepadminlist.lua" );
if (_PlayerInfo( pickerup, "networkid" ) == AUTHID1) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID2) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID3) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID4) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID5) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID6) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID7) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID8) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID9) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID10) or
(_PlayerInfo( pickerup, "networkid" ) == AUTHID11) then
_Msg( "Authorized." )
else
_Msg( "No acess!" )
_ScreenText( pickerup, "You do not have permission to use this weapon",0, 0, 255,0,0,255,1,1,2,1,0)
_PlayerSilentKill( pickerup, 1, true )
end
end
--[[ ______________________________________________
|¡!¡!¡!¡!¡!¡ Black Hole Gun !¡!¡!¡!¡!¡!¡|
|!¤¡!¡!¡!¤¡! v. 1.8 ¡!¤¡!¡!¡!¡¤!|
|¡!¡!¡!¡!¡!¡!¡!¡ By !¡!¡!¡!¡!¡!¡!¡!¡!¡|
|!¡!¡!¤¡!¡!¡ TrinitronX (enTity) !¡!¡!¡¤!¡!¡!|
|¡!¡!¡!¡!¡!¡ ROBO DONUT !¡!¡!¡!¡!¡!¡|
|!¤¡!¡!¡!¤¡¡ and ¡!¤¡!¡!¡!¡¤!|
|¡!¡!¡!¡!¡!¡ dssalmon !¡!¡!¡!¡!¡!¡|
|¡¤¡!¡!¡¤¡ vector/angle functions by ¡¤¡!¡!¡¤¡|
|¡!¡!¤!¡!¡ GeoGriff ¡!¡!¤!¡!¡|
|¡¤¡!¡!¡¤¡ gun inspired by NeoSeeker ¡¤¡!¡!¡¤¡|
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Feel free to use this, or modify it.. as long as you give the authors credit. Thanks!
]]
-- global variables that can tweak the effects of the black hole (feel free to change them if wanted)
affectplayers = true; -- whether or not the black hole will suck players in (default true). Set to false to not pull in players.
affectnpcs = true; -- whether or not the black hole will suck in npcs (default true)
-- Shot related settings
local fieldtime = 10; --default is 7 (the amount of time the black hole is in effect for.. note that changing this may offset the black hole's sound effects)
local shotmovetime = 3; --default is 3 (the amount of time the black hole ball can move around)
-- Black hole related settings
blackholeforce = 90000000; --90000000 is default for the black hole's force. Use less to give it less pull
blackholeouterradius = 300000; --default is 300000 (effects the outer/pulling radius of the black hole)
blackholeinnerradius = 70; --default is 70 (effects the inner deletion/kill radius of the black hole)
Code for the SWEP is to long so i only posted the begin.