Ulysses

Ulysses Stuff => Ulysses Release Archives => Releases => Releases for ULX v1.* => Topic started by: Golden-Death on November 26, 2005, 11:13:48 PM

Title: Anti-Chimney Spam
Post by: Golden-Death on November 26, 2005, 11:13:48 PM
This plugin does not use ULX. (Don't see why we cant put normal scripts here too)

I was just practicing lua (gotten quite good now) and this is the result:

A script that:

Copy and paste into a LUA file and put in gmod9/lua.
Type lua_openscript (nameoffile).lua and your set.

Code: [Select]
function eventPlayerSpawnProp(userid,propspa)
if propspa == "models/props_animated_breakable/Smokestack.mdl" then
_PluginMsg(userid, "You have been returned to the spawnpoint","lol",10,255,0,0,255,10);
_ScreenText(0, _PlayerInfo(userid, "name") .. " tried to spawn a chimney!",  -1,0.2,   255,0,0,255,  1,3, 6, 0, 1);
_PlayerRespawn(userid)
_EntEmitSound(userid,"ambient/alarms/klaxon1.wav")
_EntEmitSound(userid,"ambient/alarms/klaxon1.wav")
CONCOMMAND("chimney_script", GDsay);
return false;
else
return true;
end
end

function GDsay(userid)
_ScreenText(0, "Chimney Script by Golden-Death",  -1,0.2,   0,0,255,255,  1,3, 6, 0, 1);
end

How you can help:

Please tell me if you can verify that the red text that announces the player who spawned the chimney properly names the player, and shows up on every ones screens

Bugs/To Do:
Find a way to temporarily disable, in the offchance anyone really must have a chimney.


Title: Re: Anti-Chimney Spam
Post by: Megiddo on November 27, 2005, 06:54:23 AM
Code: [Select]
function eventPlayerSpawnProp(userid,propspa)
if propspa == "models/props_animated_breakable/Smokestack.mdl" then
_PluginMsg(userid, "You have been returned to the spawnpoint","lol",10,255,0,0,255,10);
_ScreenText(0, _PlayerInfo(userid, "name") .. " tried to spawn a chimney!",  -1,0.2,   255,0,0,255,  1,3, 6, 0, 1);
_PlayerRespawn(userid)
_EntEmitSound(userid,"ambient/alarms/klaxon1.wav")
_EntEmitSound(userid,"ambient/alarms/klaxon1.wav")
if ULX_CONCOMMAND ~= nil then
ULX_CONCOMMAND("chimney_script", GDsay);
else
CONCOMMAND("chimney_script", GDsay);
end
return false;
else
return true;
end
end

function GDsay(userid)
_ScreenText(0, "Chimney Script by Golden-Death",  -1,0.2,   0,0,255,255,  1,3, 6, 0, 1);
end

Improved  ;)
Title: Re: Anti-Chimney Spam
Post by: Golden-Death on December 03, 2005, 07:33:09 PM
Now hosted on Blue Fire: http://www.goldendeath.byethost11.com/
Title: Re: Anti-Chimney Spam
Post by: darkdeath on February 08, 2006, 07:53:00 AM
how can i make it also for the containers ? ...
becouse if i do that and do exacly the same but then the other mdl's it wont work :(...
so plz can u help me... ? ::)
Title: Re: Anti-Chimney Spam
Post by: Megiddo on February 08, 2006, 02:11:56 PM
This plugin was made obsolete by ULX's prop limiter