Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Need help with IProfile

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Diamond TH
Meatbag
Posts: 7
Joined: Fri Sep 14, 2018 10:44 am
Title: Fairplayer
SFD Account: Diamond_TH
SFD Alias: Diamond_TH
Started SFD: May 2015
Location: Kazakhstan
Gender:
Age: 14
Contact:

Need help with IProfile

Post by Diamond TH » Sat Oct 27, 2018 2:14 pm

Hello! I am here with new question, that can confuse powerful scripters, cuz it's stupid.
I'm trying to change players clothing to something i want without triggers. But i can't get it to work.
I want something like:

Code: Select all

If(ply.Name == "randomname"){
ply.SetHeadClothingItemColor(blue);
}
But i have no idea how to do this, and i can't understand the Script API page xd
( the code is not correct at all, yah )
0 x
Image - Noob SuperFighter saying

User avatar
ebomb09
Meatbag
Posts: 1
Joined: Mon Apr 30, 2018 5:04 am
SFD Account: ebomb09
Location: Canada/BC
Age: 16

Post by ebomb09 » Sat Nov 03, 2018 1:14 am

I don't know if you solved it yet but you could do this:

Code: Select all

If(ply.Name == "randomname"){
	IProfile sav = ply.GetProfile();
	sav.Head.Color1 = "ClothingBlue";
	ply.SetProfile(sav);
}
0 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest