Matty Posted September 8, 2012 Posted September 8, 2012 Necesito ayuda, No me Bindea el boton con el cmd Code: function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",amarker , enablecommand) bindKey(source, "z", "down", "open", open) ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Arsilex Posted September 8, 2012 Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",amarker , enablecommand) function open() bindKey(source, "z", "down", "open", open) end
Matty Posted September 8, 2012 Author Posted September 8, 2012 No me funco... ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
BorderLine Posted September 8, 2012 Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",amarker , enablecommand) bindKey(source, "z", "down", open) Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Matty Posted September 8, 2012 Author Posted September 8, 2012 WARNING: [admin]\AP3_gate\gate.lua:11: Bad argument @ 'bindKey' ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
BorderLine Posted September 8, 2012 Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end bindKey(hitPlayer, "z", "down", open) end addEventHandler("onMarkerHit",amarker , enablecommand) intenta asi pero el punto es. al tocar el marcador ke se cree el bindkey con el comando? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Matty Posted September 8, 2012 Author Posted September 8, 2012 function enablecommand (hitPlayer) if (hitPlayer) then addCommandHandler("open",open) end bindKey(hitPlayer, "z", "down", open) end addEventHandler("onMarkerHit",amarker , enablecommand) intenta asi pero el punto es. al tocar el marcador ke se cree el bindkey con el comando? Digamos que el punto seria ese, tendría que agregarle lo de unbindKey en donde esta el evento 'onMarkerLeave' para que no funcione fuera del marker no? ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
BorderLine Posted September 8, 2012 Posted September 8, 2012 exacto y un removeCommandHandler para kitarlo tambien el comando Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Recommended Posts