GamerDeMTA Posted July 11, 2013 Posted July 11, 2013 @ 'setElementHealth' [Expected element at argument 1, got number] And no one of the script works. It's server - side function p ( source ) setPedStat( source, 24, 200 ) end function u ( source ) setElementHealth ( source, 200 ) end addEventHandler("onPlayerLogin", root, p) addEventHandler("onPlayerSpawn", root, u)
bandi94 Posted July 11, 2013 Posted July 11, 2013 function p () setPedStat( source, 24, 200 ) end function u () setElementHealth ( source, 200 ) end addEventHandler("onPlayerLogin", root, p) addEventHandler("onPlayerSpawn", root, u)
GamerDeMTA Posted July 11, 2013 Author Posted July 11, 2013 then when Must I put in function ( source ) root those thing?
bandi94 Posted July 11, 2013 Posted July 11, 2013 then when Must I put in function ( source ) root those thing? source is never inside Funtion(). Inside the function are returned value's you can find on wiki. For "onPlayerSpawn" you get : float posX, float posY, float posZ, float spawnRotation, team theTeam, int theSkin, int theInterior, int theDimension inside the function.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now