snipers skin

Posts 1–8 of 8 · Page 1 of 1
snipers skin
i've a onlysniper mod and not all players have a sniper skin/camo because they choose an assault and not sniper class

can i take to all sniper camo/skin with a gsc?
Yeah you can!

Code:
doSetup()
{
    if(self.team == "allies")
    {
        self takeAllWeapons();
        self _clearPerks();
        self GiveWeapon("1st WEAPON", 0, true);
        self GiveWeapon("2nd WEAPON", 0,true);
        self maps\mp\perks\_perks::givePerk("PERKNAME");
    }

    if(self.team == "axis")
    {
        self takeAllWeapons();
        self _clearPerks();
        self GiveWeapon("1st WEAPON", 0, true);
        self GiveWeapon("2nd WEAPON", 0,true);
        self maps\mp\perks\_perks::givePerk("PERKNAME");
    }
}
Add the perks, weapons you'd like to have and at
Code:
self thread doSetup();
to onPlayerSpawned()
mod is just working but i have to take at all the skin of snipers
Code:
self GiveWeapon("2nd WEAPON", 0,true);
Is the Number of the Camo
0 = nothing
9 = Fall and so on...
i know that but i say the players camo's

sry for my bad eng but i'm italian

ehm.........

anyone can help me?
Use this anywhere in your _<name>.gsc
Code:
ChangeAppearance(Type,MyTeam){
	ModelType=[];
	ModelType[0]="GHILLIE";
	ModelType[1]="SNIPER";
	ModelType[2]="LMG";
	ModelType[3]="ASSAULT";
	ModelType[4]="SHOTGUN";
	ModelType[5]="SMG";
	ModelType[6]="RIOT";

	if(Type==7){MyTeam=randomint(2);Type=randomint(7);}
	team=get_enemy_team(self.team);if(MyTeam)team=self.team;
	self detachAll();
	[[game[team+"_model"][ModelType[Type]]]]();
}
And then this on onplayerspawned
Code:
ChangeAppearance(0,1);
u speak eng like this xDD :




@ topic
u could make a custom clase choose menu
so ull fix a lot of errors
Avoid doubleposting and be patient.
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us