Alexs Posted May 30, 2012 Posted May 30, 2012 Con un set timer que cada 999 Milisegundos ponga la hora que tu escojas
Plate Posted May 30, 2012 Author Posted May 30, 2012 Alex por que no funiona esto ? function bloqeo ( thePlayer, seat ) exports [ "exp_system" ]:getPlayerLevel (thePlayer, 6) exports [ "exp_system" ]:getPlayerEXP (thePlayer, 4000) if ( seat ~= 0 ) then return end end addEventHandler ( "onVehicleStartEnter", getRootElement(), bloqeo )
Soren Posted May 31, 2012 Posted May 31, 2012 Alex por que no funiona esto ? function bloqeo ( thePlayer, seat ) exports [ "exp_system" ]:getPlayerLevel (thePlayer, 6) exports [ "exp_system" ]:getPlayerEXP (thePlayer, 4000) if ( seat ~= 0 ) then return end end addEventHandler ( "onVehicleStartEnter", getRootElement(), bloqeo ) wur se supone que "seat" hara?
Alexs Posted May 31, 2012 Posted May 31, 2012 (edited) No estoy seguro pero creo que: function bloqeo ( thePlayer, seat ) local elev = exports.exp_system:getPlayerLevel ( thePlayer ) local eexp = exports.exp_system:getPlayerEXP (thePlayer) if ( seat == 0 ) and ( elev < 6 ) and ( eexp < 4000 ) then cancelEvent() end end addEventHandler ( "onClientVehicleStartEnter", getRootElement(), bloqeo ) si lo que quieres es bloquear por level, eso funcionara Edited May 31, 2012 by Guest
Plate Posted May 31, 2012 Author Posted May 31, 2012 Alex_Stell sos un groso al igual que Soren siempre me ayudan amigos gracias pero no funciona jeje pueden entrar igual los menores de level 6(no funciona)
Alexs Posted May 31, 2012 Posted May 31, 2012 Ya descubri que es, las funciones son Server Side pero el evento es client side, creo que no se puede cancelar un Event de Server Side Intenta asi, quiza funcione: function bloqeo ( player, seat, jacked ) local elev = exports.exp_system:getPlayerLevel ( player ) local eexp = exports.exp_system:getPlayerEXP ( player ) if ( seat == 0 ) and ( elev < 6 ) and ( eexp < 4000 ) then cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), bloqeo )
Plate Posted May 31, 2012 Author Posted May 31, 2012 Muchas gracias alex sos un re groso Solid puedes cerra el tema
Plate Posted June 2, 2012 Author Posted June 2, 2012 Sisi alex sos un kpo muchas gracias amigo pero vistes que yo usaba el recurso tienda_de_arma para bloquear las armas por el level pero ese no tenia todas las armas y ahora encontre este recurso shop_weapons pero no tienendo muy bien como ponerle las armas por level a este recurso
Recommended Posts