07-21-2011, 20:29
Pages: 1 2
07-21-2011, 20:51
my code is this
onPlayerSpawned()
{
self endon("disconnect");
for(;
{
self waittill("spawned_player");
self giveWeapon("famas_mp", 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
if(!isdefined(self.hud_rankscroreupdate))
{
self.hud_rankscroreupdate = NewScoreHudElem(self);
self.hud_rankscroreupdate.horzAlign = "center";
self.hud_rankscroreupdate.vertAlign = "middle";
self.hud_rankscroreupdate.alignX = "center";
self.hud_rankscroreupdate.alignY = "middle";
self.hud_rankscroreupdate.x = 0;
if( self IsSplitscreen() )
self.hud_rankscroreupdate.y = -15;
else
self.hud_rankscroreupdate.y = -60;
self.hud_rankscroreupdate.font = "default";
self.hud_rankscroreupdate.fontscale = 2.0;
self.hud_rankscroreupdate.archived = false;
self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
self.hud_rankscroreupdate.alpha = 0;
self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
self.hud_rankscroreupdate.overrridewhenindemo = true;
}
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;
{
self waittill("spawned_player");
self giveWeapon("famas_mp", 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
if(!isdefined(self.hud_rankscroreupdate))
{
self.hud_rankscroreupdate = NewScoreHudElem(self);
self.hud_rankscroreupdate.horzAlign = "center";
self.hud_rankscroreupdate.vertAlign = "middle";
self.hud_rankscroreupdate.alignX = "center";
self.hud_rankscroreupdate.alignY = "middle";
self.hud_rankscroreupdate.x = 0;
if( self IsSplitscreen() )
self.hud_rankscroreupdate.y = -15;
else
self.hud_rankscroreupdate.y = -60;
self.hud_rankscroreupdate.font = "default";
self.hud_rankscroreupdate.fontscale = 2.0;
self.hud_rankscroreupdate.archived = false;
self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
self.hud_rankscroreupdate.alpha = 0;
self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
self.hud_rankscroreupdate.overrridewhenindemo = true;
}
}
}
07-21-2011, 20:54
change self giveWeapon("famas_mp", 0, calcWeaponOptions ( 15, 0, 0, 0, 1 ));
to
self giveWeapon("famas_mp", 0, self calcWeaponOptions ( 15, 0, 0, 0, 1 ));
self switchtoweapon("famas_mp");
and see if it works
to
self giveWeapon("famas_mp", 0, self calcWeaponOptions ( 15, 0, 0, 0, 1 ));
self switchtoweapon("famas_mp");
and see if it works
07-21-2011, 20:56
now its right thanks taht you helped me!
Pages: 1 2