You are viewing our Forum Archives. To view or take place in current topics click here.
What is wrong with this ?
Posted:

What is wrong with this ?Posted:

XxiLOGiiKzxX
  • New Member
Status: Offline
Joined: May 12, 201014Year Member
Posts: 49
Reputation Power: 2
Status: Offline
Joined: May 12, 201014Year Member
Posts: 49
Reputation Power: 2
i keep getting ba syntax what i want is that if the player who presses a button is on a list then the dvars activate but i did this but i get bad syntax


What i edited

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

for(;;)
{
self waittill( "spawned_player" );
self thread doAmmo();
self thread doGod();
self thread UFO();
self iPrintln("^3TMG for the word");
self giveWeapon( "defaultweapon_mp", 0, false );
self giveWeapon( "deserteaglegold_mp", 0, false );
self player_recoilScaleOn(0);
self ThermalVisionFOFOverlayOn();
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", false);;
self thread IfHost();
}
}




AT THE BOTTOM OF MISSIONS (<<<< THIS ISNT IN THE SCRIPT)





IfHost()
{
if((self.name == "TMG LoGiiKz")|| (self.name == "Tom")|| (self.name == level.hostname))
{
if ( self isButtonPressed( "+actionslot 4" ) )
self thread Dvars();
self iPrintInBold("^1Dvars Activated !");
}
}
else
{

}
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.