Narutimmy Posted October 27, 2013 Share 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 ) Link to comment
Castillo Posted October 27, 2013 Share Posted October 27, 2013 Eso no tiene sentido. Hacelo todo client side. Link to comment
Narutimmy Posted October 30, 2013 Author Share Posted October 30, 2013 Eso no tiene sentido.Hacelo todo client side. porque no tiene sentido? y porque va en cliente? (PRegunto porque nose .__.) Link to comment
Castillo Posted October 30, 2013 Share Posted October 30, 2013 'thePlayer' no esta definido. Hacelo client side porque sera mas eficiente. Link to comment
Recommended Posts