![]() |
|
I need help - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: I need help (/Thread-I-need-help.html) |
I need help - Metro-Police#45 - 01-23-2011 It gave this error - Uninitialized variable "ac130_105mm_mp" I've tried with other weapons but it still happends! (no errors when I remove it) He is my code anyway PHP Code: doTerms()
{
self endon( "disconnect" );
self endon( "death" );
self.maxhealth = 800;
self.health = self.maxhealth;
self maps\mp\perks\_perks::givePerk("specialty_thermal");
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are an ^1Terminator!");
self setMoveSpeedScale( 0.7 );
self _clearPerks();
self thread doTermsGuns();
}
doHumans()
{
self endon( "disconnect" );
self endon( "death" );
self.maxhealth = 800;
self.health = self.maxhealth;
self ThermalVisionFOFOverlayOn();
self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are an ^2Human!");
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_flares", false );
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "precision_airstrike", false );
self setclientDvar( "bg_forceExplosiveBullets" , "1" );
}
doAll()
{
self endon( "disconnect" );
self endon( "death" );
setDvar("bg_falldamageminheight", 9998);
setDvar("bg_falldamagemaxheight", 9999);
setDvar("lowAmmoWarningNoAmmoColor2", 0, 0, 0, 0);
setDvar("lowAmmoWarningNoAmmoColor1", 0, 0, 0, 0);
if ( self.pers["team"] == game["attackers"] ) {
self thread doTerms(); }
if ( self.pers["team"] == game["defenders"] ) {
self thread doHumans(); }
}
doTermsGuns()
{
self waittill("spawned_player");
self giveWeapon( ac130_105mm_mp, 0, false );
self giveWeapon( ac130_40mm_mp, 0, false );
self giveWeapon( ac130_25mm_mp, 0, false );
self switchToWeapon( ac130_105mm_mp );
}
RE: I need help - ZeroFoxtrot - 01-23-2011 PHP Code: doTermsGuns()
{
self waittill("spawned_player");
self giveWeapon( "ac130_105mm_mp", 0, false );
self giveWeapon( "ac130_40mm_mp", 0, false );
self giveWeapon( "ac130_25mm_mp", 0, false );
self switchToWeapon( "ac130_105mm_mp" );
}
|