Jump to content

Help set stats


Recommended Posts

Well I'm trying to create a script to do when the player enters the server to set stats 1000 saw and uzi plus has something wrong could someone help me?

function jstats (thePlayer) 
         setPlayerStat ( thePlayer, 75, 1000 ) 
         setPlayerStat ( thePlayer, 73, 1000 ) 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), jstats ) 

Link to comment
Remove the 'thePlayer' element from the function and change the setPlayerStat function element at argument ( 1 ) to source .

well?

function jstats (source) 
         setPlayerStat ( source, 75, 1000 ) 
         setPlayerStat ( source, 73, 1000 ) 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), jstats ) 

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