Jump to content

help..Making script work only with the team i choose.


SonicTHedgehog

Recommended Posts

Posted

I have a spawn script.. it make players choose thier skin before playing.. i want it just for new players( the players that join the server first time) because i want to save the registered players skins + position .. help me please + i can you tell me how to make a script that every one can use it .. just for admins ? or a team that i choose ? help me if thats possible. ty :roll:

mtaubluascripter.png

~~~ ~~~ av-3828.gif ~~~ ~~~

~~~ ~~~ i94804806_4813_5.gif ~~~ ~~~

Posted (edited)

EDIT:

local account = getPlayerAccount(player) 
local data =getAccountData(account,"skin") 
if skin then  
setElementModel(data) 
else 
  
...--- here put the skin chose function and after  
  
setAccountData(account,"skin",getElementModel(player)) 
end 

Edited by Guest

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

get/setPedSkin is deprecated, you should use get/setElementModel instead.

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.

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