Jump to content

help in skills


MontiVante

Recommended Posts

I have a problem, to put the command / skills appear with double weapon here everything is fine, but when I die respawneo and I appear with 200 of life, I would like to help me solve the problem of not appearing with 200 life if not the maximum 100 of life.

commandTimer5 = {}
function Skills(thePlayer, commandName)
if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) == ">THE-STAFF<" ) then
if isTimer(commandTimer5[getPlayerSerial(thePlayer)]) then return outputChatBox( "#00FF00Skills: #FF0000¡No puedes usar este comando ahora mismo! Tu debes esperar!",thePlayer, 255, 255, 255,true) end
    setPedStat  (thePlayer, 24, 1000)
    setPedStat  (thePlayer, 69, 1000)
    setPedStat  (thePlayer, 70, 1000)
    setPedStat  (thePlayer, 71, 1000)
    setPedStat  (thePlayer, 72, 1000)
    setPedStat  (thePlayer, 73, 1000)
    setPedStat  (thePlayer, 74, 1000)
    setPedStat  (thePlayer, 75, 1000)
    setPedStat  (thePlayer, 76, 1000)
    setPedStat  (thePlayer, 77, 1000)
    setPedStat  (thePlayer, 78, 1000)
    setPedStat  (thePlayer, 79, 1000)
    setPedStat  (thePlayer, 160, 1000)
    setPedStat  (thePlayer, 31, 1000)
    setPedArmor ( thePlayer, 100 )
    setElementHealth(thePlayer, 100)
    commandTimer5[getPlayerSerial(thePlayer)] = setTimer(function () end, 175000, 1) 
end
end
addCommandHandler("skills", Skills)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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