ItsMods

Full Version: beginning problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
USE DEVELOPER/DEBUG_SCRIPT AAAAAAAAAAAAAAAAAAAAAAAAA
my code is this

onPlayerSpawned()
{
self endon("disconnect");

for(;Wink
{
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;
}
}
}
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
now its right thanks taht you helped me! Blush
Pages: 1 2