xTravax Posted December 23, 2012 Share Posted December 23, 2012 Guys how to make that when someone joins my server he spawn with skin 287? and also when he dies he also got that skin?? Link to comment
Baseplate Posted December 23, 2012 Share Posted December 23, 2012 addEventHandler("onPlayerSpawn", root, function() setElementModel(source, 287) end) This is easy tho?? Link to comment
Moderators IIYAMA Posted December 23, 2012 Moderators Share Posted December 23, 2012 ? spawnPlayer ( player, x, y, z, 0, 287) ------ playerskins = {} --opentable function store(player) playerskins[player]={} local skin = getElementModel (player ) playerskins[player]["skin"]=skin end function deathplayer() local player = source if playerskins[player] == nil then store(player) return -- don't set the data again........ end local skin = getElementModel (player ) playerskins[player]["skin"]=skin end addEventHandler ( "onPlayerWasted", getRootElement(), deathplayer ) function playerexit() local player = source playerskins[player] = {} playerskins[player] = nil end addEventHandler ( "onPlayerQuit", getRootElement(), playerexit ) try it, if there are any erros, let me know. Link to comment
TAPL Posted December 23, 2012 Share Posted December 23, 2012 Guys how to make that when someone joins my server he spawn with skin 287?and also when he dies he also got that skin?? What gamemode do you use? Link to comment
xTravax Posted December 23, 2012 Author Share Posted December 23, 2012 Guys how to make that when someone joins my server he spawn with skin 287?and also when he dies he also got that skin?? What gamemode do you use? I'm using a Zombie Gamemode and btw Samer with ur script sometimes player respawn at ls hospital firstly it was a bug on saving system but i changed coordinates to spawn coordinates (Area 51) and now sometimes when i die it respawn me at hospital and btw guys i got respawn script and when i turn off freeroam camera is moving when player dies and player doesnt respawn. Why? 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