Jump to content

How to make default skin 287?


xTravax

Recommended Posts

  • Moderators

?

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

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

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