Remix2000 Posted May 11, 2015 Share Posted May 11, 2015 (edited) --- Edited May 21, 2015 by Guest Link to comment
Enargy, Posted May 12, 2015 Share Posted May 12, 2015 Si no posteas el código como crees que podemos ayudarte ? Link to comment
Bc# Posted May 12, 2015 Share Posted May 12, 2015 Quitale la restricción por acl y ya esta. Si me vas a venir a preguntar como hacer eso, primero postea el codigo. Link to comment
Tomas Posted May 12, 2015 Share Posted May 12, 2015 Si no posteas el código como crees que podemos ayudarte ? Es que tenemos poderes psíquicos, somos bien kawais Link to comment
Remix2000 Posted May 13, 2015 Author Share Posted May 13, 2015 Listo, por favor ayudenmen Link to comment
Tomas Posted May 13, 2015 Share Posted May 13, 2015 Listo, por favor ayudenmen Te recomiendo darte una leidita por aquí viewtopic.php?f=145&t=38050 Link to comment
Jakepankeke Posted May 13, 2015 Share Posted May 13, 2015 Primero te explico seas nuevo aca solo ayudo: Mira debes publicar parte de tu script que deseas modificar o crear porque sin codigo no te ayudaran Nombre del codigo etc end No se si te ayude pero aca hay un script que te sirva tienes que ponerlo en tu archivo cliente: function panelvip(hitElement) guiSetVisible( nombredelpanel , true)------en "nombredelpanel " pones el respectivo nombre de el panel que deseas abrir showCursor(true) end addCommandHandler("panelvip",panelvip) Link to comment
Remix2000 Posted May 13, 2015 Author Share Posted May 13, 2015 (edited) ---- Edited May 21, 2015 by Guest Link to comment
Walid Posted May 13, 2015 Share Posted May 13, 2015 Server function Lalavip(player) if isElement(player) then triggerClientEvent(player, "ShowVipPanel",player) end end addCommandHandler("vip",Lalavip) Link to comment
Remix2000 Posted May 13, 2015 Author Share Posted May 13, 2015 (edited) ---- Edited May 21, 2015 by Guest Link to comment
Remix2000 Posted May 13, 2015 Author Share Posted May 13, 2015 (edited) pero para cerrar lo como? ___________________________ solo lo puedo abrir function onResStart () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "F3", "down", Lalavip ) end end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), onResStart) function onPlayerJoin () bindKey ( source, "F3", "down", Lalavip ) end addEventHandler ( "onPlayerJoin", getRootElement(), onPlayerJoin) function cleanAll (player) for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "F3", "down", Lalavip ) end end addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), cleanAll) Edited May 14, 2015 by Guest Link to comment
Bc# Posted May 15, 2015 Share Posted May 15, 2015 --Define esto global-mente local isOpen = false --Reemplaza esto en todos los bindKey bindKey ( player, "F3", "down", main ) --Tambien el unbind unbindKey ( player, "F3", "down", main ) --Agrega esta funcion a tu codigo function main() if isOpen then isOpen = false --Inserta una funcion para cerrar tu panel else Lalavip() isOpen = true end end Link to comment
Enargy, Posted May 15, 2015 Share Posted May 15, 2015 pero para cerrar lo como?___________________________ solo lo puedo abrir function onResStart () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "F3", "down", Lalavip ) end end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), onResStart) function onPlayerJoin () bindKey ( source, "F3", "down", Lalavip ) end addEventHandler ( "onPlayerJoin", getRootElement(), onPlayerJoin) function cleanAll (player) for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "F3", "down", Lalavip ) end end addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), cleanAll) borra guiSetVisible( nombredelpanel , true) y colocas esto: guiSetVisible( nombredelpanel, not guiGetVisible(nombredelpanel)) Link to comment
Kilfwan Posted May 19, 2015 Share Posted May 19, 2015 Que troll solo era de sacar lo del server y ponerle trigger y no pudo ._. Remix tu no lo creastes por lo visto. Link to comment
Recommended Posts