Jump to content

ayuda con spawnmarker


Recommended Posts

Posted

hola,bueno quiero un spawnmarker que de hydras y esto es lo que llevo hasta ahora,nos e en que estoy fallando y se que ustedes me pueden ayudar,de antemano gracias.

                       createMarker ( 212.86117553711, 1916.1584472656, 17.640625 ) 
  
bool isElementWithinMarker ( element theMarker, marker ring ) 
  
  
dutymarker = createMarker(212.86117553711, 1916.1584472656, 17.640625, 'ring', 2.0, 255, 0, 0, 150) 
  
function duty(thePlayer, matchingDimension) 
 if isElementWithinMarker(thePlayer, dutymarker) then 
    giveWeapon(thePlayer, 22, 100, 1)   
 else 
    outputChatBox("You are not at the right place!", thePlayer, 255, 0, 0) 
 end 
end 
addCommandHandler("duty", duty) 
  
bool setMarkerColor ( marker theMarker, int r, int g, int b, int a ) 
  
newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) 
setMarkerColor ( newmarker, 0, 255, 0, 255 )     

ahi dice giveWeapon y no quiero armas,pero no se como hacer para que aparesca la gui con los vehiculos ni para que aparesca el marker en el mapa,ayuda por favor

Posted

Ese script es un lio, volve a la wiki y empeza de nuevo.

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

Benja te eh dicho que empiezes con algo mas sencillo, no se de donde sacaste ese script, pero solo nesesitas 3 cosas basicas

onMarkerHit -- evento cuando pise el marker 
triggerClientEvent -- trigear el evento para mostrar la gui 
createVehicle -- este es obvio 

ponte a leer un poco de la wiki, y la introccion a la Gui te seran los mas utiles.

n-560x95_FFFFFF_FFFFFF_000000_000000.png

"Proyecto SX" Owner :P

  • Recently Browsing   0 members

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