Jump to content

Funciones


Javier

Recommended Posts

Posted

Lo que podrias hacer es, crear un colshape, al entrar en el, cambiar el nivel de lluvia con:

setRainLevel 

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

No, la lluvia caeria en todos lados. No existe una manera de hacer llover solo en una parte.

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
No, la lluvia caeria en todos lados. No existe una manera de hacer llover solo en una parte.

Y si hago eso que me dijiste. Solo veria la lluvia el player que entrò al colshape?.

Posted

Si lo haces client side, si.

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
Si lo haces client side, si.

OK Gracias, ah Esto està bien?

function sound ( attacker, weapon, bodypart ) 
     local Zx,Zy,Zz = getElementPosition(getLocalPlayer()) 
     if ( getElementsType ( attacker ) == "ped" ) then 
         local sound = playSound3D("sound/ah.mp3", Zx,Zy,Zz, false) 
         setSoundMaxDistance(sound, 25) 
     end 
end 
addEventHandler("onClientPlayerDamage", getLocalPlayer(), sound) 

Posted

Es "getElementType" no "getElementsType", el resto esta bien.

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...