AW: [LINK] Lua-based DoorMod
Soweit wie ich jetzt rausgefunden habe,
funktionieren bei mir alle Commands die per "say" einzugeben sind nicht mehr,
z.B. beim ECS...in der Console funktionieren sie, nur nicht peer "say":roll:
hab mein gmx auch schon neuinstallt....bring nix.:mad:
Außerdem ist mir aufgefallen, das er das:
[LUA] Error calling 'DoEventHook' : 'Line 21: attempt to index global 'gmx' (a nil value)'
jedesmal in die Console schreibt, wenn ich etwas peer "say" sage.
hoffe auf Hilfe
mfg Pac_187
AW: [LINK] Lua-based DoorMod
Zitat:
Zitat von Pac_187
Hast du dieses Lua-Script etwa noch??
Dann lad es doch bitte hoch;)
Also:
1.Du erstellst ein Combine Tor
2.Du guckst aufs Combine Tor und gibst !Door 1a ein
3.Du spawnst ein Prop
4.Du guckst auf das Prop und gibts ein !Button 1a
5.Nun hast du eine Tür mit Button
Danke. Jetzt funzt es.
AW: [LINK] Lua-based DoorMod
Und als Gegenleistung lädst du jetzt das Script einfach hoch, ok? ;-)
Bei Avons Plaintext scheint sich wohl ein Fehler eingeschlichen zu haben..
Wäre also gut das ganze nochmal als "fertige" lua Datei zu haben.
Falls du keine Seite zum uploaden kennst: http://www.rapidshare.de/
Gruß,
Unholy
AW: [LINK] Lua-based DoorMod
Meine Doormod ist aber keine LUA.
Die Tore schließen sich nach recht kurzer Zeit wieder. :(
Aber trotzdem net schlecht die Mod.
Ich weis aber nicht, von wem die Mod ist.
http://rapidshare.de/files/29358362/DoorMod.zip.html
AW: [LINK] Lua-based DoorMod
Ach mann... So langsam ist es echt frustrierend...... Jetzt hast du auch noch die falsche DoorMod :(
Diese Mod habe ich auch schon genutzt.. Fand ich aber absolut scheiße, weil Cheats an sein müssen.. o.Ô Musst zugeben, dass es den Spaß verdirbt, wenn du eine Basis baust mit Türen und dann sowieso jeder mit noclip reinfliegen kann!
Deswegen hätte ich gerne Avons Lua DoorMod gehabt. Das scheint der einzige ohne "sv_cheats 1" zu sein. Aber irgendwie scheint fast keiner mehr in diesem Forum aktiv zu sein, sonst müsste es doch irgendeinen Garry's Mod Spieler geben, der mir Avons (und nur Avons!) DoorMod senden kann. :evil:
@Sharky:
Ist jetzt nichts gegen dich. Danke, dass du die Mod hochgeladen hast, nur leider kann ich nichts damit anfangen! Trotzdem danke!
Mfg
Unholy
AW: [LINK] Lua-based DoorMod
np. Waren keine Umstände.
PS: Ich hätte a noch ne Idee. Vieleicht sollte man nach dieser LUA-Door-Mod googeln.
AW: [LINK] Lua-based DoorMod
Zitat:
Zitat von Sharky
np. Waren keine Umstände.
PS: Ich hätte a noch ne Idee. Vieleicht sollte man nach dieser LUA-Door-Mod googeln.
Bereits ein paar mal passiert.. Aber nichts gefunden.. Zum DoorMod von Avon nur diese SEite hier.. Und dann noch PP und ECG..
Tja..
Gruß,
unholy
AW: [LINK] Lua-based DoorMod
Moin bin neu hier.
Hat mich auch ganz schön genervt, dass das Lua Script aufgrund von GMX net läuft.
Habs dann mal umgeschrieben und auf meinem Server installiert.
Funzt perfekt.
Hier der Code:
Code:
-- Lua based Door controle with Chat Commands v 1.1
-- Script by aVoN - www.avon.fneuweiler.de
-- Feel free to use any part of this script for your own usage. You can modify and/or distribute it as long as you give credits to me.
-- Usable doors - Working with chatcommands. Protected by PropProtector! (Just the owner can open/close them!)
-- This needs additionally to PropProtector the GMX library! I'm using GMX 1.31, but i think, it will even work with versions before!
-- Example function found on FP in a Lua help thread. Made me to think about "how to do" this - written everything by my own
-- Usage : Look at a door an say "!door <doorname comes here>" without the < and >
-- Then, look any Prop, and say "!button <dooname>". You can bind multi doors to one button. Just lookt at the button/pro prop again and bind it with saying "!button <dooname 2>" or multibind
-- them with "!door <door1>;<door2>;<door3>"
--Doors
function my_explode(str,seperator)
local t={};
local ll=0;
while true do
local l=string.find(str,seperator,ll+1,true);
if l~=nil then
table.insert(t,string.sub(str,ll,l-1));
ll=l+1;
else
table.insert(t,string.sub(str,ll));
break;
end
end
return t;
end
--Doors
function s_eventPlayerSay( userid, strText, bTeam )
-- Ignore the console
if(userid ~= 0) then
_TraceLine(_PlayerGetShootPos(userid),_PlayerGetShootAng(userid),4096,userid)
local username,uname_pos = string.find(string.lower(strText), string.lower(_PlayerInfo(userid,"name")..": "), 1, true);
strText1 = string.sub(strText, uname_pos + 1)
local splitted = my_explode(strText1," ");
if (splitted[1] == "!open") then
if(splitted[2] == nil) then
if _TraceHitNonWorld() then
if(prop_protection (userid,_TraceGetEnt())) then
_EntFire(_TraceGetEnt(),"setanimation","open",0)
end
end
else
if(prop_protection (userid,_EntGetByName(splitted[2]))) then
_EntFire(_EntGetByName("door_"..splitted[2]),"setanimation","open",0)
end
end
end
if (splitted[1] == "!close") then
if(splitted[2] == nil) then
if _TraceHitNonWorld() then
if(prop_protection (userid,_TraceGetEnt())) then
_EntFire(_TraceGetEnt(),"setanimation","close",0)
end
end
else
if(prop_protection (userid,_EntGetByName(splitted[2]))) then
_EntFire(_EntGetByName("door_"..splitted[2]),"setanimation","close",0)
end
end
end
if(splitted[1] == "!door" and splitted[2] ~= nil) then
if(prop_protection (userid,_TraceGetEnt())) then
make_door(_TraceGetEnt(),splitted[2])
end
end
if(splitted[1] == "!button" and splitted[2] ~= nil) then
if(prop_protection (userid,_TraceGetEnt())) then
make_button(userid,_TraceGetEnt(),splitted[2])
end
end
end
end
function make_button(userid,entity,name)
local ent_name = "";
-- Check first, if the person is the owner of the door. Otherwise, dont allow him, to make it a button for it!
if(_EntGetByName(door) ~= "" and _EntGetByName(door) ~= nil and _EntGetByName(door) ~= 0) then
if(prop_protection (userid,_EntGetByName(door)) == false) then
return;
end
end
local door_table = my_explode(name,";")-- Multi doors!
for k,door in door_table do
ent_name = _EntGetName(entity);
_EntFire(entity, "addoutput", "spawnflags 256" , 0);
_EntFire(entity, "addoutput", "onplayeruse door_"..door..",setanimation,open" , 0);
_EntFire(entity, "addoutput", "onplayeruse door_"..door..",setanimation,close,3" , 0);
if(string.find(tostring(ent_name),"button") == nil) then
_EntSetName(entity,"button_"..door);
else
-- Multi Button
_EntSetName(entity,ent_name..";"..door);
end
end
end
function make_door(entity,name)
local make_door = my_explode(name,";");
-- Dont add a ; to a doors name!
_EntSetName(entity,"door_"..make_door[1]);
end
HookEvent("eventPlayerSay", s_eventPlayerSay)
Bin ein absoluter Neuling in Lua also net meckern :D .
Werde evtl. noch ein paar andere Sachen wie Camera open und Plate open einbauen ma gucken.
Ansonsten have fun.
AW: [LINK] Lua-based DoorMod
Jetzt geht's!!!! DANKE!!! :)
Wo lag das Problem?
AW: [LINK] Lua-based DoorMod
Kann mir jemand sagen, wo ich so einen lua-Code hinkopieren muss?