Narutimmy Posted October 27, 2013 Posted October 27, 2013 Hola bueno la idea es crear un script, si tienes mas de 400 ping te congele y no resivas daño, ademas de eso aparesca una imagen arriba de ti, apenas lelbo esto pero creo no funciona me ayudan por favor? function checkPing(thePlayer) ping = getPlayerPing(thePlayer) if ( ping > 400 ) then setElementFrozen ( thePlayer, true ) elseif ( ping < 400 ) then setElementFrozen ( thePlayer, false ) end end function onResourceStart(thisResource) setTimer ( checkPing, 3000, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart )
Castillo Posted October 27, 2013 Posted October 27, 2013 Eso no tiene sentido. Hacelo todo client side.
Narutimmy Posted October 30, 2013 Author Posted October 30, 2013 Eso no tiene sentido.Hacelo todo client side. porque no tiene sentido? y porque va en cliente? (PRegunto porque nose .__.)
Castillo Posted October 30, 2013 Posted October 30, 2013 'thePlayer' no esta definido. Hacelo client side porque sera mas eficiente.
Recommended Posts