Jump to content

me falta un function de spawn y termino mi server


Recommended Posts

hola amigos tengo un gui spawn y no me agarra lel arma que le puse si pueden me podrian decir como poner varias armas en vez de una? aqui esta el script:

addEvent ("spawnPlayer_hombre",true) 
addEventHandler ("spawnPlayer_hombre",getRootElement(),  
function(character) 
setPlayerTeam( source, ctm ) 
giveWeapon( source, 31, 400 ) 
outputChatBox ("Te Generaste como "..character.."!",source,225,225,0) 
spawnPlayer ( source, 221.478515625, 1878.2919921875, 17.640625) 
setPedSkin ( source, 59 ) 
end) 
  
addEvent ("spawnPlayer_mujer",true) 
addEventHandler ("spawnPlayer_mujer",getRootElement(),  
function(character) 
setPlayerTeam( source, ctm2 ) 
giveWeapon( source, 31, 400 ) 
spawnPlayer ( source, 226.5859375, 1878.255859375, 17.640625) 
outputChatBox ("Te Generaste como "..character.."!",source,255, 0, 255) 
setPedSkin ( source, 246 ) 
end) 
  
addEvent ("spawnPlayer_odst",true) 
addEventHandler ("spawnPlayer_odst",getRootElement(), 
function(character)  
setPlayerTeam( source, ctm3 ) 
giveWeapon( source, 31, 400 ) 
giveWeapon( source, 22, 600 ) 
spawnPlayer ( source, -1434.138671875, 495.91015625, 11.1953125) 
outputChatBox ("Te Generaste como "..character.."!",source,225,225,0) 
setPedSkin ( source, 60 ) 
end) 
  
function morir () 
    fadeCamera(source, false, 1, 0, 0, 0) 
triggerClientEvent("spawng", source) 
 end 
addEventHandler ("onPlayerWasted", root, morir) 
  
  
-----Equipos---- 
ctm = createTeam("Hombres", 255, 0, 0) 
ctm2 = createTeam("Mujeres", 255, 0, 255) 
ctm3 = createTeam("ODST Clan", 0, 0, 255) 
  

solo quiero poder poner varias armas y municion en el spawn gracias por su tiempo

Link to comment
  • Recently Browsing   0 members

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