Narutimmy Posted June 20, 2013 Posted June 20, 2013 Hola bueno tengo una ligera ideade como podria pero quiero preguntarles... como puedo hacer que al subir de nivel se te agreguen por ejemplo 5 puntos a nose Rifles.... y que tanto daño mas aria un rifle con solo aumentarle 5? me dan una idea o le inicio para yo seguirle... gracias
StanMarsh Posted June 20, 2013 Posted June 20, 2013 Hola bueno tengo una ligera ideade como podria pero quiero preguntarles... como puedo hacer que al subir de nivel se te agreguen por ejemplo 5 puntos a nose Rifles.... y que tanto daño mas aria un rifle con solo aumentarle 5? me dan una idea o le inicio para yo seguirle... gracias Osea Quieres Que al levelear te aumente ciertos puntos a un arma especifica?
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 Hola bueno tengo una ligera ideade como podria pero quiero preguntarles... como puedo hacer que al subir de nivel se te agreguen por ejemplo 5 puntos a nose Rifles.... y que tanto daño mas aria un rifle con solo aumentarle 5? me dan una idea o le inicio para yo seguirle... gracias Osea Quieres Que al levelear te aumente ciertos puntos a un arma especifica? Algo asi: as leveado a nivel 2 m4 mejorada en 5 puntos rifle mejorado en 10 mp5 en 6 y asi al nivel 100 que seria el maximo
StanMarsh Posted June 20, 2013 Posted June 20, 2013 Hola bueno tengo una ligera ideade como podria pero quiero preguntarles... como puedo hacer que al subir de nivel se te agreguen por ejemplo 5 puntos a nose Rifles.... y que tanto daño mas aria un rifle con solo aumentarle 5? me dan una idea o le inicio para yo seguirle... gracias Osea Quieres Que al levelear te aumente ciertos puntos a un arma especifica? Algo asi: as leveado a nivel 2 m4 mejorada en 5 puntos rifle mejorado en 10 mp5 en 6 y asi al nivel 100 que seria el maximo onPlayerLevelUP
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 Creo seria algo asi... function propiedades () local elev = tonumber ( getElementData ( thePlayer, "level" ) ) or 0 if elev = 1 then setWeaponProperty ( 30, "pro", "damage", 70 ) outputChatBox("Ak-47 +10 Puntos en Skills", getRootElement(), 255, 0, 0, true) elseif elev = 2 then setWeaponProperty ( 30, "pro", "maximum_clip_ammo", 50 ) setWeaponProperty ( 30, "pro", "accuracy", 50 ) outputChatBox("Ak-47 +10 Puntos en Daño", getRootElement(), 255, 0, 0, true) outputChatBox("Ak-47 +10 Puntos en Punteria", getRootElement(), 255, 0, 0, true) end end addEventHandler ( "onPlayerLevelUP", resourceRoot, propiedades ) voy bien?
NodZen Posted June 20, 2013 Posted June 20, 2013 Si no me equivoco tienes que usar exports... Ademas estas usando en el chat getRootElement(), no tendria que mostrarle solo al player que subió? exports.exp_system:getPlayerLevel
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 Si no me equivoco tienes que usar exports... Ademas estas usando en el chat getRootElement(), no tendria que mostrarle solo al player que subió? exports.exp_system:getPlayerLevel Esque aun me confundo con la forma de usar el chat, y sobre el level nop lo obtengo via getElementData de la misma manera que uso para restingir veiculos asi obtengoel nivel actual. pero tengo un problema... como se cuales son las propiedades iniciales de las armas y que cada nivel solo aumente 5 de daño por ejemplo
NodZen Posted June 20, 2013 Posted June 20, 2013 Si no me equivoco tienes que usar exports... Ademas estas usando en el chat getRootElement(), no tendria que mostrarle solo al player que subió? exports.exp_system:getPlayerLevel Esque aun me confundo con la forma de usar el chat, y sobre el level nop lo obtengo via getElementData de la misma manera que uso para restingir veiculos asi obtengoel nivel actual. pero tengo un problema... como se cuales son las propiedades iniciales de las armas y que cada nivel solo aumente 5 de daño por ejemplo Creo que el arma está en default...
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 Si no me equivoco tienes que usar exports... Ademas estas usando en el chat getRootElement(), no tendria que mostrarle solo al player que subió? exports.exp_system:getPlayerLevel Esque aun me confundo con la forma de usar el chat, y sobre el level nop lo obtengo via getElementData de la misma manera que uso para restingir veiculos asi obtengoel nivel actual. pero tengo un problema... como se cuales son las propiedades iniciales de las armas y que cada nivel solo aumente 5 de daño por ejemplo Creo que el arma está en default... lo que pasa es que por ejemplo yo a la silend le pongo: setWeaponProperty ( 23, "pro", "damage", 50 ) pero en lugar de quitarte 50 puntos te quita mas de 100, osea te mata de 1 tiro
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 Bueno... esto fue lo que ise: function propiedades () local level = tonumber ( getElementData ( source, "level" ) ) or 0 if (level == 5) then ---M60--- setPedStat(thePlayer, 77, 50) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 50) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 50) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 50) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 50) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 50) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 50) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 50) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 50) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 10 ) then ---M60--- setPedStat(thePlayer, 77, 100) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 100) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 100) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 100) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 100) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 100) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 100) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 100) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 100) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 15 ) then ---M60--- setPedStat(thePlayer, 77, 150) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 150) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 150) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 150) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 150) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 150) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 150) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 150) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 150) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 20 ) then ---M60--- setPedStat(thePlayer, 77, 200) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 200) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 200) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 200) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 200) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 200) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 200) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 200) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 25 ) then ---M60--- setPedStat(thePlayer, 77, 250) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 250) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 250) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 250) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 250) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 250) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 250) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 250) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 250) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 30 ) then ---M60--- setPedStat(thePlayer, 77, 300) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 300) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 300) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 300) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 300) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 300) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 300) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 300) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 35 ) then ---M60--- setPedStat(thePlayer, 77, 350) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 350) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 350) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 350) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 350) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 350) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 350) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 350) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 350) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 40 ) then ---M60--- setPedStat(thePlayer, 77, 400) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 400) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 400) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 400) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 400) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 400) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 400) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 400) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 45 ) then ---M60--- setPedStat(thePlayer, 77, 450) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 450) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 450) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 450) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 450) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 450) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 450) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun---
StanMarsh Posted June 20, 2013 Posted June 20, 2013 Bueno... esto fue lo que ise: function propiedades () local level = tonumber ( getElementData ( source, "level" ) ) or 0 if (level == 5) then ---M60--- setPedStat(thePlayer, 77, 50) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 50) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 50) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 50) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 50) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 50) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 50) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 50) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 50) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 10 ) then ---M60--- setPedStat(thePlayer, 77, 100) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 100) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 100) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 100) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 100) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 100) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 100) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 100) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 100) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 15 ) then ---M60--- setPedStat(thePlayer, 77, 150) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 150) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 150) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 150) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 150) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 150) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 150) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 150) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 150) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 20 ) then ---M60--- setPedStat(thePlayer, 77, 200) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 200) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 200) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 200) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 200) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 200) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 200) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 200) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 25 ) then ---M60--- setPedStat(thePlayer, 77, 250) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 250) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 250) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 250) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 250) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 250) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 250) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 250) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 250) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 30 ) then ---M60--- setPedStat(thePlayer, 77, 300) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 300) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 300) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 300) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 300) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 300) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 300) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 300) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 35 ) then ---M60--- setPedStat(thePlayer, 77, 350) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 350) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 350) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 350) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 350) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 350) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 350) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 350) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 350) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 40 ) then ---M60--- setPedStat(thePlayer, 77, 400) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 400) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 400) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 400) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 400) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 400) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 400) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 400) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 45 ) then ---M60--- setPedStat(thePlayer, 77, 450) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 450) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 450) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 450) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 450) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 450) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle---
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 Bueno... esto fue lo que ise: function propiedades () local level = tonumber ( getElementData ( source, "level" ) ) or 0 if (level == 5) then ---M60--- setPedStat(thePlayer, 77, 50) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 50) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 50) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 50) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 50) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 50) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 50) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 50) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 50) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 10 ) then ---M60--- setPedStat(thePlayer, 77, 100) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 100) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 100) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 100) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 100) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 100) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 100) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 100) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 100) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 15 ) then ---M60--- setPedStat(thePlayer, 77, 150) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 150) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 150) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 150) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 150) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 150) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 150) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 150) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 150) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 20 ) then ---M60--- setPedStat(thePlayer, 77, 200) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 200) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 200) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 200) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 200) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 200) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 200) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 200) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 25 ) then ---M60--- setPedStat(thePlayer, 77, 250) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 250) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 250) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 250) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 250) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 250) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 250) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 250) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 250) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 30 ) then ---M60--- setPedStat(thePlayer, 77, 300) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 300) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 300) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 300) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 300) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 300) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 300) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 300) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 35 ) then ---M60--- setPedStat(thePlayer, 77, 350) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 350) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 350) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 350) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 350) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 350) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 350) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 350) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 350) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 40 ) then ---M60--- setPedStat(thePlayer, 77, 400) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 400) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 400) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 400) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 400) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 400) outputChatBox("+5 Skills Pistola", getLocalPlayer(), 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 400) outputChatBox("+5 Skills Deagle", getLocalPlayer(), 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 400) outputChatBox("+5 Skills Shotgun", getLocalPlayer(), 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("+5 Skills UMP", getLocalPlayer(), 0, 255, 0, true) elseif (level == 45 ) then ---M60--- setPedStat(thePlayer, 77, 450) outputChatBox("+5 Skills M60", getLocalPlayer(), 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 450) outputChatBox("+5 Skills AA-12", getLocalPlayer(), 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 450) outputChatBox("+5 Skills Sniper/Rifle", getLocalPlayer(), 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 450) outputChatBox("+5 Skills Lanzagranadas", getLocalPlayer(), 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 450) outputChatBox("+5 Skills Silend", getLocalPlayer(), 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 450)
StanMarsh Posted June 20, 2013 Posted June 20, 2013 si se esta aumentando la habilidad el arma se volvera mas poderosa pero si es el daño posiblemente
Castillo Posted June 20, 2013 Posted June 20, 2013 setWeaponProperty es global, no se puede usar para un solo jugador.
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 setWeaponProperty es global, no se puede usar para un solo jugador. por eso cambie a setPedStat pero no funciona el scrip, llegasa nivel 5 y nada ni el mensaje sale, y no ahi error en el debug
Castillo Posted June 20, 2013 Posted June 20, 2013 setPedStat es para que puedas llevar dos armas y correr mientras apuntas ( con algunas nada mas ) .
Narutimmy Posted June 20, 2013 Author Posted June 20, 2013 setPedStat es para que puedas llevar dos armas y correr mientras apuntas ( con algunas nada mas ) . entonses... no se puede? que tal si uso setelementheath (creo asi se escribe luego lo busco) y con los If ago que dependiendo el nivel y el arma aga un daño extra?
Recommended Posts