Jump to content

Player born with the skin of CJ [ HELP ]


Dinossauro

Recommended Posts

Posted

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)

Posted

Topic moved to "Scripting" section.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

We don't accept requests here, learn how to do it or pay someone to do it for you.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 ) 

Posted

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 !

Posted
   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

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