GamerDeMTA Posted July 11, 2013 Share Posted July 11, 2013 function ( ) local eop = getPedStat ( player, 75 ) setPedStat ( player, 75, eop + 500 ) end addEventHandler("onPlayerSpawn", root, ) Link to comment
Moderators IIYAMA Posted July 11, 2013 Moderators Share Posted July 11, 2013 function ( ) local eop = getPedStat ( source, 75 ) setPedStat (source, 75, eop + 500 ) end addEventHandler("onPlayerSpawn", root, ) WIKI mta: onPlayerSpawn This event is called when a player spawns. Parameters float posX, float posY, float posZ, float spawnRotation, team theTeam, int theSkin, int theInterior, int theDimension posX: The X position the player spawned at posY: The Y position the player spawned at posZ: The Z position the player spawned at spawnRotation: The rotation the player spawned with theTeam: The team the player spawned with theSkin: The skin / model the player spawned with theInterior: The interior the player spawned in theDimension: The dimension the player spawned in Source The source of this event is the player that just spawned. Link to comment
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