Dinossauro Posted August 2, 2012 Share Posted August 2, 2012 Hello friends. I wanted to pass me the feature that gives rise to the player with only one skin, to the CJ. Like, I die, and I am born in a place with the same skin (that of CJ) Link to comment
fmj02 Posted August 2, 2012 Share Posted August 2, 2012 This topic should be in scripting section, but for that you will need these EVENTS: https://wiki.multitheftauto.com/wiki/OnPlayerWasted https://wiki.multitheftauto.com/wiki/OnPlayerSpawn FUNCTIONS: https://wiki.multitheftauto.com/wiki/SetElementModel (the model should be 0 then - cj skin) https://wiki.multitheftauto.com/wiki/SpawnPlayer Link to comment
Castillo Posted August 2, 2012 Share Posted August 2, 2012 Topic moved to "Scripting" section. Link to comment
Dinossauro Posted August 2, 2012 Author Share Posted August 2, 2012 I wanted you to give me download it. Link to comment
Castillo Posted August 2, 2012 Share Posted August 2, 2012 We don't accept requests here, learn how to do it or pay someone to do it for you. Link to comment
fmj02 Posted August 2, 2012 Share Posted August 2, 2012 I wanted you to give me download it. Learn LUA first. This is for you: function player_Spawn() -- The source of this event is the player that just spawned. setElementModel(source,0) -- set spawned player skin to 0 end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) function player_Wasted ( ammo, attacker, weapon, bodypart ) -- The source of this event is the player that died or got killed. local x,y,z = 0,0,0 -- your coords spawnPlayer(source,x,y,z) end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) function spawnonjoin ( ) -- The source of this event is the player who joined. local x,y,z = 0,0,0 -- your coords spawnPlayer(source,x,y,z) end addEventHandler ( "onPlayerJoin", getRootElement(), spawnonjoin ) Link to comment
Dinossauro Posted August 2, 2012 Author Share Posted August 2, 2012 Thank you so much ! I LOVE YOU MAAAAAAAAAAAAAAAAAAAAAAAAAAAAN. Link to comment
fmj02 Posted August 2, 2012 Share Posted August 2, 2012 This is server-side script, don't forget about it. Link to comment
Dinossauro Posted August 3, 2012 Author Share Posted August 3, 2012 I put on the server and now born with the skin of cj, but a second then goes to another site. I think the spawn that u had before is the way. so I removed what I had before and now not born when he dies, is bug. HELP ME ! Link to comment
_Spanish4Life_ Posted August 3, 2012 Share Posted August 3, 2012 function player_Spawn() -- The source of this event is the player that just spawned. setElementModel(source,0) -- set spawned player skin to 0 end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) function player_Wasted ( ammo, attacker, weapon, bodypart ) -- The source of this event is the player that died or got killed. local x,y,z = 0,0,0 -- your coords spawnPlayer(source,x,y,z) end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) function spawnonjoin ( ) -- The source of this event is the player who joined. local x,y,z = getElementPosition(source) -- your coords spawnPlayer(source,x,y,z) end addEventHandler ( "onPlayerJoin", getRootElement(), spawnonjoin ) Fixed 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