Plate Posted May 30, 2012 Posted May 30, 2012 Alguien me podria decir como congelar el tiempo? Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted May 30, 2012 Posted May 30, 2012 Con un set timer que cada 999 Milisegundos ponga la hora que tu escojas Developer @ MYVAL
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 ) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
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?
Plate Posted May 31, 2012 Author Posted May 31, 2012 seat no significa haciento Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
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 Developer @ MYVAL
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) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
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 ) Developer @ MYVAL
Plate Posted May 31, 2012 Author Posted May 31, 2012 Muchas gracias alex sos un re groso Solid puedes cerra el tema Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
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 Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Recommended Posts