Jump to content

chico como hago esto???


andrex123

Recommended Posts

Posted

Miren de nuebo :B xD , bueno ahora quiero crear un scrip que pueda hacer esto:

Crear un marker, se que se crea con esto

 mark1 = createMarker ( 1958.7810058594, -2181.6384277344, 13.546875, "cylinder", 2, 255, 0, 0, 255 ) 

, la cual este marker se llamar mark1

Pero yo quiero crear un evento, si es haci como se dice, para cuando pise el mark1 desencadene algo, como mover algun objeto, le salgan palabras en el ChatBox, eso es todo, me Ayudan :D

Posted
mark1 = createMarker ( 1958.7810058594, -2181.6384277344, 13.546875, "cylinder", 2, 255, 0, 0, 255 ) 
  
addEventHandler("onMarkerHit",mark1, 
function (hitElement) 
     if (getElementType(hitElement) == "player") then 
          outputChatBox("Hola ".. tostring(getPlayerName(hitElement)) .."!", hitElement) 
     end 
end) 

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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