Narutimmy Posted July 8, 2013 Share Posted July 8, 2013 Nose que pasa que no funciona se supone al llegar al nv 10 deben agregarse los stats, o por lo menos salir el mesaje en el chat pero no sale nada 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--- Link to comment
AlvareZ_ Posted July 8, 2013 Share Posted July 8, 2013 Intenta esto function propiedades () local level = getElementData( thePlayer, "Level" ) 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--- Link to comment
Alexs Posted July 8, 2013 Share Posted July 8, 2013 'setPedStat' es server-side, 'getLocalPlayer' es client-side y no se de que lado va ese evento, tampoco defines 'thePlayer' y cuidado con el segundo argumento de 'addEventHandler'. EDIT: No se de que lado va este script, pero el segundo argumento de 'outputChatBox' es un jugador solo en server-side. Link to comment
AlvareZ_ Posted July 8, 2013 Share Posted July 8, 2013 Buen detalle alex, Ejemplo: -- client function propiedades () local level = getElementData( localPlayer, "Level" ) if (level == 5) then triggerServerEvent("nivel1", localPlayer) end end addEventHandler ( "onPlayerLevelUP", resourceRoot, propiedades ) -- server function PrimerNivel() ---M60--- setPedStat(thePlayer, 77, 50) outputChatBox("+5 Skills M60",source, 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 50) outputChatBox("+5 Skills AA-12", source, 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 50) outputChatBox("+5 Skills Sniper/Rifle", source, 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 50) outputChatBox("+5 Skills Lanzagranadas", source, 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 50) outputChatBox("+5 Skills Silend",source, 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 50) outputChatBox("+5 Skills Pistola",source, 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 50) outputChatBox("+5 Skills Deagle", source, 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 50) outputChatBox("+5 Skills Shotgun", source, 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 50) outputChatBox("+5 Skills UMP", source, 0, 255, 0, true) end addEvent("nivel1", true) addEventHandler("nivel1", root, PrimerNivel) Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 Buen detalle alex, Ejemplo:-- client function propiedades () local level = getElementData( localPlayer, "Level" ) if (level == 5) then triggerServerEvent("nivel1", localPlayer) end end addEventHandler ( "onPlayerLevelUP", resourceRoot, propiedades ) -- server function PrimerNivel() ---M60--- setPedStat(thePlayer, 77, 50) outputChatBox("+5 Skills M60",source, 0, 255, 0, true) --AA12--- setPedStat(thePlayer, 74, 50) outputChatBox("+5 Skills AA-12", source, 0, 255, 0, true) --Sniper--- setPedStat(thePlayer, 79, 50) outputChatBox("+5 Skills Sniper/Rifle", source, 0, 255, 0, true) ---M4--- setPedStat(thePlayer, 78, 50) outputChatBox("+5 Skills Lanzagranadas", source, 0, 255, 0, true) ---Silend--- setPedStat(thePlayer, 70, 50) outputChatBox("+5 Skills Silend",source, 0, 255, 0, true) ---Pistola--- setPedStat(thePlayer, 69, 50) outputChatBox("+5 Skills Pistola",source, 0, 255, 0, true) ---Deagle--- setPedStat(thePlayer, 71, 50) outputChatBox("+5 Skills Deagle", source, 0, 255, 0, true) ---Shotgun--- setPedStat(thePlayer, 72, 50) outputChatBox("+5 Skills Shotgun", source, 0, 255, 0, true) ---UMP--- setPedStat(thePlayer, 76, 50) outputChatBox("+5 Skills UMP", source, 0, 255, 0, true) end addEvent("nivel1", true) addEventHandler("nivel1", root, PrimerNivel) pues ya lo probe y nada, sv: function PrimerNivel() ---M60--- setPedStat(thePlayer, 77, 100) --AA12--- setPedStat(thePlayer, 74, 100) --Sniper--- setPedStat(thePlayer, 79, 100) ---M4--- setPedStat(thePlayer, 78, 100) ---Silend--- setPedStat(thePlayer, 70, 100) ---Pistola--- setPedStat(thePlayer, 69, 100) ---Deagle--- setPedStat(thePlayer, 71, 100) ---Shotgun--- setPedStat(thePlayer, 72, 100) ---UMP--- setPedStat(thePlayer, 76, 100) outputChatBox("Habilidad en Armas al 10%",source, 0, 255, 0, true) outputChatBox("[>---------]",source, 0, 255, 0, true) end addEvent("nivel1", true) addEventHandler("nivel1", root, PrimerNivel) function SegundoNivel() ---M60--- setPedStat(thePlayer, 77, 200) --AA12--- setPedStat(thePlayer, 74, 200) --Sniper--- setPedStat(thePlayer, 79, 200) ---M4--- setPedStat(thePlayer, 78, 200) ---Silend--- setPedStat(thePlayer, 70, 200) ---Pistola--- setPedStat(thePlayer, 69, 200) ---Deagle--- setPedStat(thePlayer, 71, 200) ---Shotgun--- setPedStat(thePlayer, 72, 200) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("Habilidad en Armas al 20%",source, 0, 255, 0, true) outputChatBox("[>>--------]",source, 0, 255, 0, true) end addEvent("nivel2", true) addEventHandler("nivel2", root, SegundoNivel) function TercerNivel() ---M60--- setPedStat(thePlayer, 77, 300) --AA12--- setPedStat(thePlayer, 74, 300) --Sniper--- setPedStat(thePlayer, 79, 300) ---M4--- setPedStat(thePlayer, 78, 300) ---Silend--- setPedStat(thePlayer, 70, 300) ---Pistola--- setPedStat(thePlayer, 69, 300) ---Deagle--- setPedStat(thePlayer, 71, 300) ---Shotgun--- setPedStat(thePlayer, 72, 300) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("Habilidad en Armas al 30%",source, 0, 255, 0, true) outputChatBox("[>>>-------]",source, 0, 255, 0, true) end addEvent("nivel3", true) addEventHandler("nivel3", root, TercerNivel) function CuartoNivel() ---M60--- setPedStat(thePlayer, 77, 400) --AA12--- setPedStat(thePlayer, 74, 400) --Sniper--- setPedStat(thePlayer, 79, 400) ---M4--- setPedStat(thePlayer, 78, 400) ---Silend--- setPedStat(thePlayer, 70, 400) ---Pistola--- setPedStat(thePlayer, 69, 400) ---Deagle--- setPedStat(thePlayer, 71, 400) ---Shotgun--- setPedStat(thePlayer, 72, 400) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("Habilidad en Armas al 40%",source, 0, 255, 0, true) outputChatBox("[>>>>------]",source, 0, 255, 0, true) end addEvent("nivel4", true) addEventHandler("nivel4", root, CuartoNivel) function QuintoNivel() ---M60--- setPedStat(thePlayer, 77, 500) --AA12--- setPedStat(thePlayer, 74, 500) --Sniper--- setPedStat(thePlayer, 79, 500) ---M4--- setPedStat(thePlayer, 78, 500) ---Silend--- setPedStat(thePlayer, 70, 500) ---Pistola--- setPedStat(thePlayer, 69, 500) ---Deagle--- setPedStat(thePlayer, 71, 500) ---Shotgun--- setPedStat(thePlayer, 72, 500) ---UMP--- setPedStat(thePlayer, 76, 500) outputChatBox("Habilidad en Armas al 50%",source, 0, 255, 0, true) outputChatBox("[>>>>>-----]",source, 0, 255, 0, true) end addEvent("nivel6", true) addEventHandler("nivel6", root, QuintoNivel) function SextoNivel() ---M60--- setPedStat(thePlayer, 77, 600) --AA12--- setPedStat(thePlayer, 74, 600) --Sniper--- setPedStat(thePlayer, 79, 600) ---M4--- setPedStat(thePlayer, 78, 600) ---Silend--- setPedStat(thePlayer, 70, 600) ---Pistola--- setPedStat(thePlayer, 69, 600) ---Deagle--- setPedStat(thePlayer, 71, 600) ---Shotgun--- setPedStat(thePlayer, 72, 600) ---UMP--- setPedStat(thePlayer, 76, 600) outputChatBox("Habilidad en Armas al 60%",source, 0, 255, 0, true) outputChatBox("[>>>>>>----]",source, 0, 255, 0, true) end addEvent("nivel6", true) addEventHandler("nivel6", root, SextoNivel) function SeptimoNivel() ---M60--- setPedStat(thePlayer, 77, 700) --AA12--- setPedStat(thePlayer, 74, 700) --Sniper--- setPedStat(thePlayer, 79, 700) ---M4--- setPedStat(thePlayer, 78, 700) ---Silend--- setPedStat(thePlayer, 70, 700) ---Pistola--- setPedStat(thePlayer, 69, 700) ---Deagle--- setPedStat(thePlayer, 71, 700) ---Shotgun--- setPedStat(thePlayer, 72, 700) ---UMP--- setPedStat(thePlayer, 76, 700) outputChatBox("Habilidad en Armas al 70%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",source, 0, 255, 0, true) end addEvent("nivel7", true) addEventHandler("nivel7", root, SeptimoNivel) function OctavoNivel() ---M60--- setPedStat(thePlayer, 77, 800) --AA12--- setPedStat(thePlayer, 74, 800) --Sniper--- setPedStat(thePlayer, 79, 800) ---M4--- setPedStat(thePlayer, 78, 800) ---Silend--- setPedStat(thePlayer, 70, 800) ---Pistola--- setPedStat(thePlayer, 69, 800) ---Deagle--- Link to comment
AlvareZ_ Posted July 8, 2013 Share Posted July 8, 2013 Intenta poniendo así TODO SERVER-SIDE: Mi error fue que onPlayerLevelUP es server-side function PrimerNivel(thePlayer) if (getElementData( thePlayer, "Level" ) < "10") then setPedStat(thePlayer, 77, 100) setPedStat(thePlayer, 74, 100) setPedStat(thePlayer, 79, 100) setPedStat(thePlayer, 78, 100) setPedStat(thePlayer, 70, 100) setPedStat(thePlayer, 69, 100) setPedStat(thePlayer, 71, 100) setPedStat(thePlayer, 72, 100) setPedStat(thePlayer, 76, 100) outputChatBox("Habilidad en Armas al 10%",thePlayer, 0, 255, 0, true) outputChatBox("[>---------]",thePlayer, 0, 255, 0, true) end end addEventHandler("onPlayerLevelUP", root, PrimerNivel) Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 Intenta poniendo así TODO SERVER-SIDE: Mi error fue que onPlayerLevelUP es server-side function PrimerNivel(thePlayer) if (getElementData( thePlayer, "Level" ) < "10") then setPedStat(thePlayer, 77, 100) setPedStat(thePlayer, 74, 100) setPedStat(thePlayer, 79, 100) setPedStat(thePlayer, 78, 100) setPedStat(thePlayer, 70, 100) setPedStat(thePlayer, 69, 100) setPedStat(thePlayer, 71, 100) setPedStat(thePlayer, 72, 100) setPedStat(thePlayer, 76, 100) outputChatBox("Habilidad en Armas al 10%",thePlayer, 0, 255, 0, true) outputChatBox("[>---------]",thePlayer, 0, 255, 0, true) end end addEventHandler("onPlayerLevelUP", root, PrimerNivel) No sirvio Sv: function PrimerNivel(thePlayer) if (getElementData( thePlayer, "Level" ) == "10") then setPedStat(thePlayer, 77, 100) setPedStat(thePlayer, 74, 100) setPedStat(thePlayer, 79, 100) setPedStat(thePlayer, 78, 100) setPedStat(thePlayer, 70, 100) setPedStat(thePlayer, 69, 100) setPedStat(thePlayer, 71, 100) setPedStat(thePlayer, 72, 100) setPedStat(thePlayer, 76, 100) outputChatBox("Habilidad en Armas al 10%",thePlayer, 0, 255, 0, true) outputChatBox("[>---------]",thePlayer, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "20") then ---M60--- setPedStat(thePlayer, 77, 200) --AA12--- setPedStat(thePlayer, 74, 200) --Sniper--- setPedStat(thePlayer, 79, 200) ---M4--- setPedStat(thePlayer, 78, 200) ---Silend--- setPedStat(thePlayer, 70, 200) ---Pistola--- setPedStat(thePlayer, 69, 200) ---Deagle--- setPedStat(thePlayer, 71, 200) ---Shotgun--- setPedStat(thePlayer, 72, 200) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("Habilidad en Armas al 20%",source, 0, 255, 0, true) outputChatBox("[>>--------]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "30") then ---M60--- setPedStat(thePlayer, 77, 300) --AA12--- setPedStat(thePlayer, 74, 300) --Sniper--- setPedStat(thePlayer, 79, 300) ---M4--- setPedStat(thePlayer, 78, 300) ---Silend--- setPedStat(thePlayer, 70, 300) ---Pistola--- setPedStat(thePlayer, 69, 300) ---Deagle--- setPedStat(thePlayer, 71, 300) ---Shotgun--- setPedStat(thePlayer, 72, 300) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("Habilidad en Armas al 30%",source, 0, 255, 0, true) outputChatBox("[>>>-------]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "40") then ---M60--- setPedStat(thePlayer, 77, 400) --AA12--- setPedStat(thePlayer, 74, 400) --Sniper--- setPedStat(thePlayer, 79, 400) ---M4--- setPedStat(thePlayer, 78, 400) ---Silend--- setPedStat(thePlayer, 70, 400) ---Pistola--- setPedStat(thePlayer, 69, 400) ---Deagle--- setPedStat(thePlayer, 71, 400) ---Shotgun--- setPedStat(thePlayer, 72, 400) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("Habilidad en Armas al 40%",source, 0, 255, 0, true) outputChatBox("[>>>>------]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "50") then---M60--- setPedStat(thePlayer, 77, 500) --AA12--- setPedStat(thePlayer, 74, 500) --Sniper--- setPedStat(thePlayer, 79, 500) ---M4--- setPedStat(thePlayer, 78, 500) ---Silend--- setPedStat(thePlayer, 70, 500) ---Pistola--- setPedStat(thePlayer, 69, 500) ---Deagle--- setPedStat(thePlayer, 71, 500) ---Shotgun--- setPedStat(thePlayer, 72, 500) ---UMP--- setPedStat(thePlayer, 76, 500) outputChatBox("Habilidad en Armas al 50%",source, 0, 255, 0, true) outputChatBox("[>>>>>-----]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "60") then ---M60--- setPedStat(thePlayer, 77, 600) --AA12--- setPedStat(thePlayer, 74, 600) --Sniper--- setPedStat(thePlayer, 79, 600) ---M4--- setPedStat(thePlayer, 78, 600) ---Silend--- setPedStat(thePlayer, 70, 600) ---Pistola--- setPedStat(thePlayer, 69, 600) ---Deagle--- setPedStat(thePlayer, 71, 600) ---Shotgun--- setPedStat(thePlayer, 72, 600) ---UMP--- setPedStat(thePlayer, 76, 600) outputChatBox("Habilidad en Armas al 60%",source, 0, 255, 0, true) outputChatBox("[>>>>>>----]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "70") then ---M60--- setPedStat(thePlayer, 77, 700) --AA12--- setPedStat(thePlayer, 74, 700) --Sniper--- setPedStat(thePlayer, 79, 700) ---M4--- setPedStat(thePlayer, 78, 700) ---Silend--- setPedStat(thePlayer, 70, 700) ---Pistola--- setPedStat(thePlayer, 69, 700) ---Deagle--- setPedStat(thePlayer, 71, 700) ---Shotgun--- setPedStat(thePlayer, 72, 700) ---UMP--- setPedStat(thePlayer, 76, 700) outputChatBox("Habilidad en Armas al 70%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "80") then ---M60--- setPedStat(thePlayer, 77, 800) --AA12--- setPedStat(thePlayer, 74, 800) --Sniper--- setPedStat(thePlayer, 79, 800) ---M4--- setPedStat(thePlayer, 78, 800) ---Silend--- setPedStat(thePlayer, 70, 800) ---Pistola--- setPedStat(thePlayer, 69, 800) ---Deagle--- setPedStat(thePlayer, 71, 800) ---Shotgun--- setPedStat(thePlayer, 72, 800) ---UMP--- setPedStat(thePlayer, 76, 800) outputChatBox("Habilidad en Armas al 80%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "90") then ---M60--- setPedStat(thePlayer, 77, 900) --AA12--- setPedStat(thePlayer, 74, 900) --Sniper--- setPedStat(thePlayer, 79, 900) ---M4--- setPedStat(thePlayer, 78, 900) ---Silend--- setPedStat(thePlayer, 70, 900) ---Pistola--- setPedStat(thePlayer, 69, 900) ---Deagle--- setPedStat(thePlayer, 71, 900) ---Shotgun--- setPedStat(thePlayer, 72, 900) ---UMP--- setPedStat(thePlayer, 76, 900) outputChatBox("Habilidad en Armas al 90%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",source, 0, 255, 0, true) elseif (getElementData( thePlayer, "Level" ) == "100") then ---M60--- setPedStat(thePlayer, 77, 999) --AA12--- setPedStat(thePlayer, 74, 999) Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 Ojo, que para poder usar un evento exportado primero debes crear el evento para que funcione. addEvent("onPlayerLevelUP") Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 Ojo, que para poder usar un evento exportado primero debes crear el evento para que funcione. addEvent("onPlayerLevelUP") El scrip lo tengo en el mismo que el exp_system , aun asi debo ponerlo? Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 Ojo, que para poder usar un evento exportado primero debes crear el evento para que funcione. addEvent("onPlayerLevelUP") El scrip lo tengo en el mismo que el exp_system , aun asi debo ponerlo? Si. Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 Ojo, que para poder usar un evento exportado primero debes crear el evento para que funcione. addEvent("onPlayerLevelUP") El scrip lo tengo en el mismo que el exp_system , aun asi debo ponerlo? Si. me da este problema WARNING: exp_system\statssv.lua:245: Bad argument @ 'getElementData' [Expected element at argument 1, got number '57'] Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 En la linea 245 remplaza el getElementData por este: (tonumber(getElementData( thePlayer, "Level" )) == 100) Y creo que asi con todas. Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 En la linea 245 remplaza el getElementData por este: (tonumber(getElementData( thePlayer, "Level" )) == 100) Y creo que asi con todas. me parece que ya funciona no ahi error en el debug solo este: [17:48:36] SCRIPT ERROR: exp_system\statssv.lua:3: 'then' expected near 'setPedStat' [17:48:36] WARNING: Loading script failed: exp_system\statssv.lua:3: 'then' expected near 'setPedStat pero creo es todo y no sale el mensaje en el chat... pero los stats creo si cambian Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 function PrimerNivel(thePlayer) if (tonumber(getElementData( thePlayer, "Level" )) == 10) then setPedStat(thePlayer, 77, 100) setPedStat(thePlayer, 74, 100) setPedStat(thePlayer, 79, 100) setPedStat(thePlayer, 78, 100) setPedStat(thePlayer, 70, 100) setPedStat(thePlayer, 69, 100) setPedStat(thePlayer, 71, 100) setPedStat(thePlayer, 72, 100) setPedStat(thePlayer, 76, 100) outputChatBox("Habilidad en Armas al 10%",thePlayer, 0, 255, 0, true) outputChatBox("[>---------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 20) then ---M60--- setPedStat(thePlayer, 77, 200) --AA12--- setPedStat(thePlayer, 74, 200) --Sniper--- setPedStat(thePlayer, 79, 200) ---M4--- setPedStat(thePlayer, 78, 200) ---Silend--- setPedStat(thePlayer, 70, 200) ---Pistola--- setPedStat(thePlayer, 69, 200) ---Deagle--- setPedStat(thePlayer, 71, 200) ---Shotgun--- setPedStat(thePlayer, 72, 200) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("Habilidad en Armas al 20%",thePlayer, 0, 255, 0, true) outputChatBox("[>>--------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 30) then ---M60--- setPedStat(thePlayer, 77, 300) --AA12--- setPedStat(thePlayer, 74, 300) --Sniper--- setPedStat(thePlayer, 79, 300) ---M4--- setPedStat(thePlayer, 78, 300) ---Silend--- setPedStat(thePlayer, 70, 300) ---Pistola--- setPedStat(thePlayer, 69, 300) ---Deagle--- setPedStat(thePlayer, 71, 300) ---Shotgun--- setPedStat(thePlayer, 72, 300) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("Habilidad en Armas al 30%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>-------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 40) then ---M60--- setPedStat(thePlayer, 77, 400) --AA12--- setPedStat(thePlayer, 74, 400) --Sniper--- setPedStat(thePlayer, 79, 400) ---M4--- setPedStat(thePlayer, 78, 400) ---Silend--- setPedStat(thePlayer, 70, 400) ---Pistola--- setPedStat(thePlayer, 69, 400) ---Deagle--- setPedStat(thePlayer, 71, 400) ---Shotgun--- setPedStat(thePlayer, 72, 400) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("Habilidad en Armas al 40%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 50) then---M60--- setPedStat(thePlayer, 77, 500) --AA12--- setPedStat(thePlayer, 74, 500) --Sniper--- setPedStat(thePlayer, 79, 500) ---M4--- setPedStat(thePlayer, 78, 500) ---Silend--- setPedStat(thePlayer, 70, 500) ---Pistola--- setPedStat(thePlayer, 69, 500) ---Deagle--- setPedStat(thePlayer, 71, 500) ---Shotgun--- setPedStat(thePlayer, 72, 500) ---UMP--- setPedStat(thePlayer, 76, 500) outputChatBox("Habilidad en Armas al 50%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>-----]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 60) then ---M60--- setPedStat(thePlayer, 77, 600) --AA12--- setPedStat(thePlayer, 74, 600) --Sniper--- setPedStat(thePlayer, 79, 600) ---M4--- setPedStat(thePlayer, 78, 600) ---Silend--- setPedStat(thePlayer, 70, 600) ---Pistola--- setPedStat(thePlayer, 69, 600) ---Deagle--- setPedStat(thePlayer, 71, 600) ---Shotgun--- setPedStat(thePlayer, 72, 600) ---UMP--- setPedStat(thePlayer, 76, 600) outputChatBox("Habilidad en Armas al 60%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>----]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 70) then ---M60--- setPedStat(thePlayer, 77, 700) --AA12--- setPedStat(thePlayer, 74, 700) --Sniper--- setPedStat(thePlayer, 79, 700) ---M4--- setPedStat(thePlayer, 78, 700) ---Silend--- setPedStat(thePlayer, 70, 700) ---Pistola--- setPedStat(thePlayer, 69, 700) ---Deagle--- setPedStat(thePlayer, 71, 700) ---Shotgun--- setPedStat(thePlayer, 72, 700) ---UMP--- setPedStat(thePlayer, 76, 700) outputChatBox("Habilidad en Armas al 70%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 80) then ---M60--- setPedStat(thePlayer, 77, 800) --AA12--- setPedStat(thePlayer, 74, 800) --Sniper--- setPedStat(thePlayer, 79, 800) ---M4--- setPedStat(thePlayer, 78, 800) ---Silend--- setPedStat(thePlayer, 70, 800) ---Pistola--- setPedStat(thePlayer, 69, 800) ---Deagle--- setPedStat(thePlayer, 71, 800) ---Shotgun--- setPedStat(thePlayer, 72, 800) ---UMP--- setPedStat(thePlayer, 76, 800) outputChatBox("Habilidad en Armas al 80%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 90) then ---M60--- setPedStat(thePlayer, 77, 900) --AA12--- setPedStat(thePlayer, 74, 900) --Sniper--- setPedStat(thePlayer, 79, 900) ---M4--- setPedStat(thePlayer, 78, 900) ---Silend--- setPedStat(thePlayer, 70, 900) ---Pistola--- setPedStat(thePlayer, 69, 900) ---Deagle--- setPedStat(thePlayer, 71, 900) ---Shotgun--- setPedStat(thePlayer, 72, 900) ---UMP--- setPedStat(thePlayer, 76, 900) outputChatBox("Habilidad en Armas al 90%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 100) then ---M60--- setPedStat(thePlayer, 77, 999) --AA12--- setPedStat(thePlayer, 74, 999) Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 function PrimerNivel(thePlayer) if (tonumber(getElementData( thePlayer, "Level" )) == 10) then setPedStat(thePlayer, 77, 100) setPedStat(thePlayer, 74, 100) setPedStat(thePlayer, 79, 100) setPedStat(thePlayer, 78, 100) setPedStat(thePlayer, 70, 100) setPedStat(thePlayer, 69, 100) setPedStat(thePlayer, 71, 100) setPedStat(thePlayer, 72, 100) setPedStat(thePlayer, 76, 100) outputChatBox("Habilidad en Armas al 10%",thePlayer, 0, 255, 0, true) outputChatBox("[>---------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 20) then ---M60--- setPedStat(thePlayer, 77, 200) --AA12--- setPedStat(thePlayer, 74, 200) --Sniper--- setPedStat(thePlayer, 79, 200) ---M4--- setPedStat(thePlayer, 78, 200) ---Silend--- setPedStat(thePlayer, 70, 200) ---Pistola--- setPedStat(thePlayer, 69, 200) ---Deagle--- setPedStat(thePlayer, 71, 200) ---Shotgun--- setPedStat(thePlayer, 72, 200) ---UMP--- setPedStat(thePlayer, 76, 200) outputChatBox("Habilidad en Armas al 20%",thePlayer, 0, 255, 0, true) outputChatBox("[>>--------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 30) then ---M60--- setPedStat(thePlayer, 77, 300) --AA12--- setPedStat(thePlayer, 74, 300) --Sniper--- setPedStat(thePlayer, 79, 300) ---M4--- setPedStat(thePlayer, 78, 300) ---Silend--- setPedStat(thePlayer, 70, 300) ---Pistola--- setPedStat(thePlayer, 69, 300) ---Deagle--- setPedStat(thePlayer, 71, 300) ---Shotgun--- setPedStat(thePlayer, 72, 300) ---UMP--- setPedStat(thePlayer, 76, 300) outputChatBox("Habilidad en Armas al 30%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>-------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 40) then ---M60--- setPedStat(thePlayer, 77, 400) --AA12--- setPedStat(thePlayer, 74, 400) --Sniper--- setPedStat(thePlayer, 79, 400) ---M4--- setPedStat(thePlayer, 78, 400) ---Silend--- setPedStat(thePlayer, 70, 400) ---Pistola--- setPedStat(thePlayer, 69, 400) ---Deagle--- setPedStat(thePlayer, 71, 400) ---Shotgun--- setPedStat(thePlayer, 72, 400) ---UMP--- setPedStat(thePlayer, 76, 400) outputChatBox("Habilidad en Armas al 40%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>------]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 50) then---M60--- setPedStat(thePlayer, 77, 500) --AA12--- setPedStat(thePlayer, 74, 500) --Sniper--- setPedStat(thePlayer, 79, 500) ---M4--- setPedStat(thePlayer, 78, 500) ---Silend--- setPedStat(thePlayer, 70, 500) ---Pistola--- setPedStat(thePlayer, 69, 500) ---Deagle--- setPedStat(thePlayer, 71, 500) ---Shotgun--- setPedStat(thePlayer, 72, 500) ---UMP--- setPedStat(thePlayer, 76, 500) outputChatBox("Habilidad en Armas al 50%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>-----]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 60) then ---M60--- setPedStat(thePlayer, 77, 600) --AA12--- setPedStat(thePlayer, 74, 600) --Sniper--- setPedStat(thePlayer, 79, 600) ---M4--- setPedStat(thePlayer, 78, 600) ---Silend--- setPedStat(thePlayer, 70, 600) ---Pistola--- setPedStat(thePlayer, 69, 600) ---Deagle--- setPedStat(thePlayer, 71, 600) ---Shotgun--- setPedStat(thePlayer, 72, 600) ---UMP--- setPedStat(thePlayer, 76, 600) outputChatBox("Habilidad en Armas al 60%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>----]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 70) then ---M60--- setPedStat(thePlayer, 77, 700) --AA12--- setPedStat(thePlayer, 74, 700) --Sniper--- setPedStat(thePlayer, 79, 700) ---M4--- setPedStat(thePlayer, 78, 700) ---Silend--- setPedStat(thePlayer, 70, 700) ---Pistola--- setPedStat(thePlayer, 69, 700) ---Deagle--- setPedStat(thePlayer, 71, 700) ---Shotgun--- setPedStat(thePlayer, 72, 700) ---UMP--- setPedStat(thePlayer, 76, 700) outputChatBox("Habilidad en Armas al 70%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 80) then ---M60--- setPedStat(thePlayer, 77, 800) --AA12--- setPedStat(thePlayer, 74, 800) --Sniper--- setPedStat(thePlayer, 79, 800) ---M4--- setPedStat(thePlayer, 78, 800) ---Silend--- setPedStat(thePlayer, 70, 800) ---Pistola--- setPedStat(thePlayer, 69, 800) ---Deagle--- setPedStat(thePlayer, 71, 800) ---Shotgun--- setPedStat(thePlayer, 72, 800) ---UMP--- setPedStat(thePlayer, 76, 800) outputChatBox("Habilidad en Armas al 80%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 90) then ---M60--- setPedStat(thePlayer, 77, 900) --AA12--- setPedStat(thePlayer, 74, 900) --Sniper--- setPedStat(thePlayer, 79, 900) ---M4--- setPedStat(thePlayer, 78, 900) ---Silend--- setPedStat(thePlayer, 70, 900) ---Pistola--- setPedStat(thePlayer, 69, 900) ---Deagle--- setPedStat(thePlayer, 71, 900) ---Shotgun--- setPedStat(thePlayer, 72, 900) ---UMP--- setPedStat(thePlayer, 76, 900) outputChatBox("Habilidad en Armas al 90%",thePlayer, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",thePlayer, 0, 255, 0, true) elseif (tonumber(getElementData( thePlayer, "Level" )) == 100) then ---M60--- setPedStat(thePlayer, 77, 999) --AA12--- Link to comment
AlvareZ_ Posted July 8, 2013 Share Posted July 8, 2013 creo que no hace falta el tonumber if (getElementData( thePlayer, "Level" ) < "10") then Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 function PrimerNivel() if (tonumber(getElementData( source, "Level" )) == 10) then setPedStat(source, 77, 100) setPedStat(source, 74, 100) setPedStat(source, 79, 100) setPedStat(source, 78, 100) setPedStat(source, 70, 100) setPedStat(source, 69, 100) setPedStat(source, 71, 100) setPedStat(source, 72, 100) setPedStat(source, 76, 100) outputChatBox("Habilidad en Armas al 10%",source, 0, 255, 0, true) outputChatBox("[>---------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 20) then ---M60--- setPedStat(source, 77, 200) --AA12--- setPedStat(source, 74, 200) --Sniper--- setPedStat(source, 79, 200) ---M4--- setPedStat(source, 78, 200) ---Silend--- setPedStat(source, 70, 200) ---Pistola--- setPedStat(source, 69, 200) ---Deagle--- setPedStat(source, 71, 200) ---Shotgun--- setPedStat(source, 72, 200) ---UMP--- setPedStat(source, 76, 200) outputChatBox("Habilidad en Armas al 20%",source, 0, 255, 0, true) outputChatBox("[>>--------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 30) then ---M60--- setPedStat(source, 77, 300) --AA12--- setPedStat(source, 74, 300) --Sniper--- setPedStat(source, 79, 300) ---M4--- setPedStat(source, 78, 300) ---Silend--- setPedStat(source, 70, 300) ---Pistola--- setPedStat(source, 69, 300) ---Deagle--- setPedStat(source, 71, 300) ---Shotgun--- setPedStat(source, 72, 300) ---UMP--- setPedStat(source, 76, 300) outputChatBox("Habilidad en Armas al 30%",source, 0, 255, 0, true) outputChatBox("[>>>-------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 40) then ---M60--- setPedStat(source, 77, 400) --AA12--- setPedStat(source, 74, 400) --Sniper--- setPedStat(source, 79, 400) ---M4--- setPedStat(source, 78, 400) ---Silend--- setPedStat(source, 70, 400) ---Pistola--- setPedStat(source, 69, 400) ---Deagle--- setPedStat(source, 71, 400) ---Shotgun--- setPedStat(source, 72, 400) ---UMP--- setPedStat(source, 76, 400) outputChatBox("Habilidad en Armas al 40%",source, 0, 255, 0, true) outputChatBox("[>>>>------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 50) then---M60--- setPedStat(source, 77, 500) --AA12--- setPedStat(source, 74, 500) --Sniper--- setPedStat(source, 79, 500) ---M4--- setPedStat(source, 78, 500) ---Silend--- setPedStat(source, 70, 500) ---Pistola--- setPedStat(source, 69, 500) ---Deagle--- setPedStat(source, 71, 500) ---Shotgun--- setPedStat(source, 72, 500) ---UMP--- setPedStat(source, 76, 500) outputChatBox("Habilidad en Armas al 50%",source, 0, 255, 0, true) outputChatBox("[>>>>>-----]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 60) then ---M60--- setPedStat(source, 77, 600) --AA12--- setPedStat(source, 74, 600) --Sniper--- setPedStat(source, 79, 600) ---M4--- setPedStat(source, 78, 600) ---Silend--- setPedStat(source, 70, 600) ---Pistola--- setPedStat(source, 69, 600) ---Deagle--- setPedStat(source, 71, 600) ---Shotgun--- setPedStat(source, 72, 600) ---UMP--- setPedStat(source, 76, 600) outputChatBox("Habilidad en Armas al 60%",source, 0, 255, 0, true) outputChatBox("[>>>>>>----]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 70) then ---M60--- setPedStat(source, 77, 700) --AA12--- setPedStat(source, 74, 700) --Sniper--- setPedStat(source, 79, 700) ---M4--- setPedStat(source, 78, 700) ---Silend--- setPedStat(source, 70, 700) ---Pistola--- setPedStat(source, 69, 700) ---Deagle--- setPedStat(source, 71, 700) ---Shotgun--- setPedStat(source, 72, 700) ---UMP--- setPedStat(source, 76, 700) outputChatBox("Habilidad en Armas al 70%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 80) then ---M60--- setPedStat(source, 77, 800) --AA12--- setPedStat(source, 74, 800) --Sniper--- setPedStat(source, 79, 800) ---M4--- setPedStat(source, 78, 800) ---Silend--- setPedStat(source, 70, 800) ---Pistola--- setPedStat(source, 69, 800) ---Deagle--- setPedStat(source, 71, 800) ---Shotgun--- setPedStat(source, 72, 800) ---UMP--- setPedStat(source, 76, 800) outputChatBox("Habilidad en Armas al 80%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 90) then ---M60--- setPedStat(source, 77, 900) --AA12--- setPedStat(source, 74, 900) --Sniper--- setPedStat(source, 79, 900) ---M4--- setPedStat(source, 78, 900) ---Silend--- setPedStat(source, 70, 900) ---Pistola--- setPedStat(source, 69, 900) ---Deagle--- setPedStat(source, 71, 900) ---Shotgun--- setPedStat(source, 72, 900) ---UMP--- setPedStat(source, 76, 900) outputChatBox("Habilidad en Armas al 90%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 100) then ---M60--- setPedStat(source, 77, 999) --AA12--- setPedStat(source, 74, 999) Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 function PrimerNivel() if (tonumber(getElementData( source, "Level" )) == 10) then setPedStat(source, 77, 100) setPedStat(source, 74, 100) setPedStat(source, 79, 100) setPedStat(source, 78, 100) setPedStat(source, 70, 100) setPedStat(source, 69, 100) setPedStat(source, 71, 100) setPedStat(source, 72, 100) setPedStat(source, 76, 100) outputChatBox("Habilidad en Armas al 10%",source, 0, 255, 0, true) outputChatBox("[>---------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 20) then ---M60--- setPedStat(source, 77, 200) --AA12--- setPedStat(source, 74, 200) --Sniper--- setPedStat(source, 79, 200) ---M4--- setPedStat(source, 78, 200) ---Silend--- setPedStat(source, 70, 200) ---Pistola--- setPedStat(source, 69, 200) ---Deagle--- setPedStat(source, 71, 200) ---Shotgun--- setPedStat(source, 72, 200) ---UMP--- setPedStat(source, 76, 200) outputChatBox("Habilidad en Armas al 20%",source, 0, 255, 0, true) outputChatBox("[>>--------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 30) then ---M60--- setPedStat(source, 77, 300) --AA12--- setPedStat(source, 74, 300) --Sniper--- setPedStat(source, 79, 300) ---M4--- setPedStat(source, 78, 300) ---Silend--- setPedStat(source, 70, 300) ---Pistola--- setPedStat(source, 69, 300) ---Deagle--- setPedStat(source, 71, 300) ---Shotgun--- setPedStat(source, 72, 300) ---UMP--- setPedStat(source, 76, 300) outputChatBox("Habilidad en Armas al 30%",source, 0, 255, 0, true) outputChatBox("[>>>-------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 40) then ---M60--- setPedStat(source, 77, 400) --AA12--- setPedStat(source, 74, 400) --Sniper--- setPedStat(source, 79, 400) ---M4--- setPedStat(source, 78, 400) ---Silend--- setPedStat(source, 70, 400) ---Pistola--- setPedStat(source, 69, 400) ---Deagle--- setPedStat(source, 71, 400) ---Shotgun--- setPedStat(source, 72, 400) ---UMP--- setPedStat(source, 76, 400) outputChatBox("Habilidad en Armas al 40%",source, 0, 255, 0, true) outputChatBox("[>>>>------]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 50) then---M60--- setPedStat(source, 77, 500) --AA12--- setPedStat(source, 74, 500) --Sniper--- setPedStat(source, 79, 500) ---M4--- setPedStat(source, 78, 500) ---Silend--- setPedStat(source, 70, 500) ---Pistola--- setPedStat(source, 69, 500) ---Deagle--- setPedStat(source, 71, 500) ---Shotgun--- setPedStat(source, 72, 500) ---UMP--- setPedStat(source, 76, 500) outputChatBox("Habilidad en Armas al 50%",source, 0, 255, 0, true) outputChatBox("[>>>>>-----]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 60) then ---M60--- setPedStat(source, 77, 600) --AA12--- setPedStat(source, 74, 600) --Sniper--- setPedStat(source, 79, 600) ---M4--- setPedStat(source, 78, 600) ---Silend--- setPedStat(source, 70, 600) ---Pistola--- setPedStat(source, 69, 600) ---Deagle--- setPedStat(source, 71, 600) ---Shotgun--- setPedStat(source, 72, 600) ---UMP--- setPedStat(source, 76, 600) outputChatBox("Habilidad en Armas al 60%",source, 0, 255, 0, true) outputChatBox("[>>>>>>----]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 70) then ---M60--- setPedStat(source, 77, 700) --AA12--- setPedStat(source, 74, 700) --Sniper--- setPedStat(source, 79, 700) ---M4--- setPedStat(source, 78, 700) ---Silend--- setPedStat(source, 70, 700) ---Pistola--- setPedStat(source, 69, 700) ---Deagle--- setPedStat(source, 71, 700) ---Shotgun--- setPedStat(source, 72, 700) ---UMP--- setPedStat(source, 76, 700) outputChatBox("Habilidad en Armas al 70%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 80) then ---M60--- setPedStat(source, 77, 800) --AA12--- setPedStat(source, 74, 800) --Sniper--- setPedStat(source, 79, 800) ---M4--- setPedStat(source, 78, 800) ---Silend--- setPedStat(source, 70, 800) ---Pistola--- setPedStat(source, 69, 800) ---Deagle--- setPedStat(source, 71, 800) ---Shotgun--- setPedStat(source, 72, 800) ---UMP--- setPedStat(source, 76, 800) outputChatBox("Habilidad en Armas al 80%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 90) then ---M60--- setPedStat(source, 77, 900) --AA12--- setPedStat(source, 74, 900) --Sniper--- setPedStat(source, 79, 900) ---M4--- setPedStat(source, 78, 900) ---Silend--- setPedStat(source, 70, 900) ---Pistola--- setPedStat(source, 69, 900) ---Deagle--- setPedStat(source, 71, 900) ---Shotgun--- setPedStat(source, 72, 900) ---UMP--- setPedStat(source, 76, 900) outputChatBox("Habilidad en Armas al 90%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",source, 0, 255, 0, true) elseif (tonumber(getElementData( source, "Level" )) == 100) then ---M60--- setPedStat(source, 77, 999) --AA12--- Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 Mira que eso solo va a funcionar cuando subas de nivel, quiere decir que no trates de ejecutar comandos en el admin panel. Y en el script no dice nada que no poder caminar o disparar. Link to comment
Narutimmy Posted July 8, 2013 Author Share Posted July 8, 2013 Mira que eso solo va a funcionar cuando subas de nivel, quiere decir que no trates de ejecutar comandos en el admin panel. Y en el script no dice nada que no poder caminar o disparar. Ya subi pero no muestra ningun mensaje pero si le setea los stas, con setPedStat al tener cierta cantidad puedes disparar y caminar al mismo tiempo pero nose cuanto se ocupa. Link to comment
Sasu Posted July 8, 2013 Share Posted July 8, 2013 Mira que eso solo va a funcionar cuando subas de nivel, quiere decir que no trates de ejecutar comandos en el admin panel. Y en el script no dice nada que no poder caminar o disparar. Ya subi pero no muestra ningun mensaje pero si le setea los stas, con setPedStat al tener cierta cantidad puedes disparar y caminar al mismo tiempo pero nose cuanto se ocupa. Ya se de lo que me hablas pero ni idea. Creo que en los 700. Prueba: function PrimerNivel(oldLevel, newLevel) if newLevel == 10 then setPedStat(source, 77, 100) setPedStat(source, 74, 100) setPedStat(source, 79, 100) setPedStat(source, 78, 100) setPedStat(source, 70, 100) setPedStat(source, 69, 100) setPedStat(source, 71, 100) setPedStat(source, 72, 100) setPedStat(source, 76, 100) outputChatBox("Habilidad en Armas al 10%",source, 0, 255, 0, true) outputChatBox("[>---------]",source, 0, 255, 0, true) elseif newLevel == 20 then ---M60--- setPedStat(source, 77, 200) --AA12--- setPedStat(source, 74, 200) --Sniper--- setPedStat(source, 79, 200) ---M4--- setPedStat(source, 78, 200) ---Silend--- setPedStat(source, 70, 200) ---Pistola--- setPedStat(source, 69, 200) ---Deagle--- setPedStat(source, 71, 200) ---Shotgun--- setPedStat(source, 72, 200) ---UMP--- setPedStat(source, 76, 200) outputChatBox("Habilidad en Armas al 20%",source, 0, 255, 0, true) outputChatBox("[>>--------]",source, 0, 255, 0, true) elseif newLevel == 30 then ---M60--- setPedStat(source, 77, 300) --AA12--- setPedStat(source, 74, 300) --Sniper--- setPedStat(source, 79, 300) ---M4--- setPedStat(source, 78, 300) ---Silend--- setPedStat(source, 70, 300) ---Pistola--- setPedStat(source, 69, 300) ---Deagle--- setPedStat(source, 71, 300) ---Shotgun--- setPedStat(source, 72, 300) ---UMP--- setPedStat(source, 76, 300) outputChatBox("Habilidad en Armas al 30%",source, 0, 255, 0, true) outputChatBox("[>>>-------]",source, 0, 255, 0, true) elseif newLevel == 40 then ---M60--- setPedStat(source, 77, 400) --AA12--- setPedStat(source, 74, 400) --Sniper--- setPedStat(source, 79, 400) ---M4--- setPedStat(source, 78, 400) ---Silend--- setPedStat(source, 70, 400) ---Pistola--- setPedStat(source, 69, 400) ---Deagle--- setPedStat(source, 71, 400) ---Shotgun--- setPedStat(source, 72, 400) ---UMP--- setPedStat(source, 76, 400) outputChatBox("Habilidad en Armas al 40%",source, 0, 255, 0, true) outputChatBox("[>>>>------]",source, 0, 255, 0, true) elseif newLevel == 50 then---M60--- setPedStat(source, 77, 500) --AA12--- setPedStat(source, 74, 500) --Sniper--- setPedStat(source, 79, 500) ---M4--- setPedStat(source, 78, 500) ---Silend--- setPedStat(source, 70, 500) ---Pistola--- setPedStat(source, 69, 500) ---Deagle--- setPedStat(source, 71, 500) ---Shotgun--- setPedStat(source, 72, 500) ---UMP--- setPedStat(source, 76, 500) outputChatBox("Habilidad en Armas al 50%",source, 0, 255, 0, true) outputChatBox("[>>>>>-----]",source, 0, 255, 0, true) elseif newLevel == 60 then ---M60--- setPedStat(source, 77, 600) --AA12--- setPedStat(source, 74, 600) --Sniper--- setPedStat(source, 79, 600) ---M4--- setPedStat(source, 78, 600) ---Silend--- setPedStat(source, 70, 600) ---Pistola--- setPedStat(source, 69, 600) ---Deagle--- setPedStat(source, 71, 600) ---Shotgun--- setPedStat(source, 72, 600) ---UMP--- setPedStat(source, 76, 600) outputChatBox("Habilidad en Armas al 60%",source, 0, 255, 0, true) outputChatBox("[>>>>>>----]",source, 0, 255, 0, true) elseif newLevel == 70 then ---M60--- setPedStat(source, 77, 700) --AA12--- setPedStat(source, 74, 700) --Sniper--- setPedStat(source, 79, 700) ---M4--- setPedStat(source, 78, 700) ---Silend--- setPedStat(source, 70, 700) ---Pistola--- setPedStat(source, 69, 700) ---Deagle--- setPedStat(source, 71, 700) ---Shotgun--- setPedStat(source, 72, 700) ---UMP--- setPedStat(source, 76, 700) outputChatBox("Habilidad en Armas al 70%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",source, 0, 255, 0, true) elseif newLevel == 80 then ---M60--- setPedStat(source, 77, 800) --AA12--- setPedStat(source, 74, 800) --Sniper--- setPedStat(source, 79, 800) ---M4--- setPedStat(source, 78, 800) ---Silend--- setPedStat(source, 70, 800) ---Pistola--- setPedStat(source, 69, 800) ---Deagle--- setPedStat(source, 71, 800) ---Shotgun--- setPedStat(source, 72, 800) ---UMP--- setPedStat(source, 76, 800) outputChatBox("Habilidad en Armas al 80%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",source, 0, 255, 0, true) elseif newLevel == 90 then ---M60--- setPedStat(source, 77, 900) --AA12--- setPedStat(source, 74, 900) --Sniper--- setPedStat(source, 79, 900) ---M4--- setPedStat(source, 78, 900) ---Silend--- setPedStat(source, 70, 900) ---Pistola--- setPedStat(source, 69, 900) ---Deagle--- setPedStat(source, 71, 900) ---Shotgun--- setPedStat(source, 72, 900) ---UMP--- setPedStat(source, 76, 900) outputChatBox("Habilidad en Armas al 90%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",source, 0, 255, 0, true) elseif newLevel == 100 then ---M60--- setPedStat(source, 77, 999) --AA12--- setPedStat(source, 74, 999) Link to comment
Narutimmy Posted July 9, 2013 Author Share Posted July 9, 2013 Mira que eso solo va a funcionar cuando subas de nivel, quiere decir que no trates de ejecutar comandos en el admin panel. Y en el script no dice nada que no poder caminar o disparar. Ya subi pero no muestra ningun mensaje pero si le setea los stas, con setPedStat al tener cierta cantidad puedes disparar y caminar al mismo tiempo pero nose cuanto se ocupa. Ya se de lo que me hablas pero ni idea. Creo que en los 700. Prueba: function PrimerNivel(oldLevel, newLevel) if newLevel == 10 then setPedStat(source, 77, 100) setPedStat(source, 74, 100) setPedStat(source, 79, 100) setPedStat(source, 78, 100) setPedStat(source, 70, 100) setPedStat(source, 69, 100) setPedStat(source, 71, 100) setPedStat(source, 72, 100) setPedStat(source, 76, 100) outputChatBox("Habilidad en Armas al 10%",source, 0, 255, 0, true) outputChatBox("[>---------]",source, 0, 255, 0, true) elseif newLevel == 20 then ---M60--- setPedStat(source, 77, 200) --AA12--- setPedStat(source, 74, 200) --Sniper--- setPedStat(source, 79, 200) ---M4--- setPedStat(source, 78, 200) ---Silend--- setPedStat(source, 70, 200) ---Pistola--- setPedStat(source, 69, 200) ---Deagle--- setPedStat(source, 71, 200) ---Shotgun--- setPedStat(source, 72, 200) ---UMP--- setPedStat(source, 76, 200) outputChatBox("Habilidad en Armas al 20%",source, 0, 255, 0, true) outputChatBox("[>>--------]",source, 0, 255, 0, true) elseif newLevel == 30 then ---M60--- setPedStat(source, 77, 300) --AA12--- setPedStat(source, 74, 300) --Sniper--- setPedStat(source, 79, 300) ---M4--- setPedStat(source, 78, 300) ---Silend--- setPedStat(source, 70, 300) ---Pistola--- setPedStat(source, 69, 300) ---Deagle--- setPedStat(source, 71, 300) ---Shotgun--- setPedStat(source, 72, 300) ---UMP--- setPedStat(source, 76, 300) outputChatBox("Habilidad en Armas al 30%",source, 0, 255, 0, true) outputChatBox("[>>>-------]",source, 0, 255, 0, true) elseif newLevel == 40 then ---M60--- setPedStat(source, 77, 400) --AA12--- setPedStat(source, 74, 400) --Sniper--- setPedStat(source, 79, 400) ---M4--- setPedStat(source, 78, 400) ---Silend--- setPedStat(source, 70, 400) ---Pistola--- setPedStat(source, 69, 400) ---Deagle--- setPedStat(source, 71, 400) ---Shotgun--- setPedStat(source, 72, 400) ---UMP--- setPedStat(source, 76, 400) outputChatBox("Habilidad en Armas al 40%",source, 0, 255, 0, true) outputChatBox("[>>>>------]",source, 0, 255, 0, true) elseif newLevel == 50 then---M60--- setPedStat(source, 77, 500) --AA12--- setPedStat(source, 74, 500) --Sniper--- setPedStat(source, 79, 500) ---M4--- setPedStat(source, 78, 500) ---Silend--- setPedStat(source, 70, 500) ---Pistola--- setPedStat(source, 69, 500) ---Deagle--- setPedStat(source, 71, 500) ---Shotgun--- setPedStat(source, 72, 500) ---UMP--- setPedStat(source, 76, 500) outputChatBox("Habilidad en Armas al 50%",source, 0, 255, 0, true) outputChatBox("[>>>>>-----]",source, 0, 255, 0, true) elseif newLevel == 60 then ---M60--- setPedStat(source, 77, 600) --AA12--- setPedStat(source, 74, 600) --Sniper--- setPedStat(source, 79, 600) ---M4--- setPedStat(source, 78, 600) ---Silend--- setPedStat(source, 70, 600) ---Pistola--- setPedStat(source, 69, 600) ---Deagle--- setPedStat(source, 71, 600) ---Shotgun--- setPedStat(source, 72, 600) ---UMP--- setPedStat(source, 76, 600) outputChatBox("Habilidad en Armas al 60%",source, 0, 255, 0, true) outputChatBox("[>>>>>>----]",source, 0, 255, 0, true) elseif newLevel == 70 then ---M60--- setPedStat(source, 77, 700) --AA12--- setPedStat(source, 74, 700) --Sniper--- setPedStat(source, 79, 700) ---M4--- setPedStat(source, 78, 700) ---Silend--- setPedStat(source, 70, 700) ---Pistola--- setPedStat(source, 69, 700) ---Deagle--- setPedStat(source, 71, 700) ---Shotgun--- setPedStat(source, 72, 700) ---UMP--- setPedStat(source, 76, 700) outputChatBox("Habilidad en Armas al 70%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>---]",source, 0, 255, 0, true) elseif newLevel == 80 then ---M60--- setPedStat(source, 77, 800) --AA12--- setPedStat(source, 74, 800) --Sniper--- setPedStat(source, 79, 800) ---M4--- setPedStat(source, 78, 800) ---Silend--- setPedStat(source, 70, 800) ---Pistola--- setPedStat(source, 69, 800) ---Deagle--- setPedStat(source, 71, 800) ---Shotgun--- setPedStat(source, 72, 800) ---UMP--- setPedStat(source, 76, 800) outputChatBox("Habilidad en Armas al 80%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>--]",source, 0, 255, 0, true) elseif newLevel == 90 then ---M60--- setPedStat(source, 77, 900) --AA12--- setPedStat(source, 74, 900) --Sniper--- setPedStat(source, 79, 900) ---M4--- setPedStat(source, 78, 900) ---Silend--- setPedStat(source, 70, 900) ---Pistola--- setPedStat(source, 69, 900) ---Deagle--- setPedStat(source, 71, 900) ---Shotgun--- setPedStat(source, 72, 900) ---UMP--- setPedStat(source, 76, 900) outputChatBox("Habilidad en Armas al 90%",source, 0, 255, 0, true) outputChatBox("[>>>>>>>>>-]",source, 0, 255, 0, true) elseif newLevel == 100 then ---M60--- setPedStat(source, 77, 999) --AA12--- Link to comment
Sasu Posted July 9, 2013 Share Posted July 9, 2013 Parametros del event onPlayerLevelUP: 1° El nivel viejo. 2° El nivel que se ha ganado. En resumen, no. Link to comment
Narutimmy Posted July 9, 2013 Author Share Posted July 9, 2013 Parametros del event onPlayerLevelUP: 1° El nivel viejo. 2° El nivel que se ha ganado.En resumen, no. ya lo probe si funciona pero.. nose que pasa que... lo activo y me da stats... llegoa nivel 10 las pierdo, nivel 20 las gano... , probare en otro sv Link to comment
Recommended Posts