Jump to content

Skin change


Karuzo

Recommended Posts

Hey Guys,

I have a Problem with new Skins.

Let's say i have these IDs : 310,311,312

and i want to check if a player is in the group VIP , if he is nothing will happen if he changes his skin.

but if hes not in the group he will get an error message and his skin will changed to 0.

Hope you could understand me , and can help me :-)

Link to comment

If the VIP group is a team, you'd have to use

if getTeamName(getPlayerTeam([player element here)) == "VIP" then 

but if the VIP group is an ACL group then you'd have to use

if isObjectInACLGroup("user."..getPlayerAccount([player element here]), aclGetGroup("VIP")) then 

If the player passes the check you can set his skin to whatever you want, otherwise you set his skin to 0 using

setElementModel() 

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