Jump to content

[Ajuda] Stats


Recommended Posts

Bem antes de tudo boas a todos.

Então eu tentei criar um script em que, um jogador ao entrar no servidor, os seus stats iriam ficar automaticamente a "1000" mas algo parece, não esta a funcionar.. então vim aqui a procura de ajuda, obg aos que tentarem ajudar.

addEventHandler("onPlayerJoin",root, 
function(player) 
setPedStat ( player, 70, 1000 ) 
setPedStat ( player, 71, 1000 ) 
setPedStat ( player, 72, 1000 ) 
setPedStat ( player, 74, 1000 ) 
setPedStat ( player, 76, 1000 ) 
setPedStat ( player, 77, 1000 ) 
setPedStat ( player, 78, 1000 ) 
setPedStat ( player, 79, 1000 ) 
end 
) 

Link to comment

Tente:

addEventHandler("onPlayerJoin",root, 
function() 
    setPedStat ( source, 70, 999 ) 
    setPedStat ( source, 71, 999 ) 
    setPedStat ( source, 72, 999 ) 
    setPedStat ( source, 74, 999 ) 
    setPedStat ( source, 76, 999 ) 
    setPedStat ( source, 77, 999 ) 
    setPedStat ( source, 78, 999 ) 
    setPedStat ( source, 79, 999 ) 
end 
) 

Link to comment
Tente:
addEventHandler("onPlayerJoin",root, 
function() 
    setPedStat ( source, 70, 999 ) 
    setPedStat ( source, 71, 999 ) 
    setPedStat ( source, 72, 999 ) 
    setPedStat ( source, 74, 999 ) 
    setPedStat ( source, 76, 999 ) 
    setPedStat ( source, 77, 999 ) 
    setPedStat ( source, 78, 999 ) 
    setPedStat ( source, 79, 999 ) 
end 
) 

Obrigado DNL ajudou, mas tive de mudar os valores de "999" para "1000" e funcionou, ja estive a testar umas armas e funcionaram perfeitamente, amanha testarei as restantes armas, mais uma vez obrigado DNL e Xeon.

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...