Jump to content

[Ayuda] Ping Frozen


Narutimmy

Recommended Posts

Posted

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 ) 

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Eso no tiene sentido.

Hacelo todo client side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Eso no tiene sentido.

Hacelo todo client side.

porque no tiene sentido? y porque va en cliente? (PRegunto porque nose .__.)

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

'thePlayer' no esta definido.

Hacelo client side porque sera mas eficiente.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...