04-29-2012, 10:47
my init:
Code:
init()
{
level thread onPlayerConnect();
}
randoms:
Code:
else
{
switch(RandomInt(23))
{
case 0:
self maps\mp\gametypes\_hardpoints::giveKillstreak("dogs_mp", "dogs_mp", true, false);
break;
case 1:
self maps\mp\gametypes\_hardpoints::giveKillstreak("helicopter_gunner_mp", "helicopter_gunner_mp", true, false);
break;
case 2:
self maps\mp\gametypes\_hardpoints::giveKillstreak("radardirection_mp", "radardirection_mp", true, false);
break;
case 3:
self maps\mp\gametypes\_hardpoints::giveKillstreak("mortar_mp", "mortar_mp", true, false);
break;
case 4:
self maps\mp\gametypes\_hardpoints::giveKillstreak("counteruav_mp", "counteruav_mp", true, false);
break;
case 5:
self maps\mp\gametypes\_hardpoints::giveKillstreak("rcbomb_mp", "rcbomb_mp", true, false);
break;
case 6:
self maps\mp\gametypes\_hardpoints::giveKillstreak("helicopter_player_firstperson_mp", "helicopter_player_firstperson_mp", true, false);
break;
case 7:
self maps\mp\gametypes\_hardpoints::giveKillstreak("airstrike_mp", "airstrike_mp", true, false);
break;
case 8:
self maps\mp\gametypes\_hardpoints::giveKillstreak("helicopter_mp", "helicopter_mp", true, false);
break;
case 9:
self maps\mp\gametypes\_hardpoints::giveKillstreak("autoturret_mp", "autoturret_mp", true, false);
break;
case 10:
self maps\mp\gametypes\_hardpoints::giveKillstreak("napalm_mp", "napalm_mp", true, false);
break;
case 11:
self maps\mp\gametypes\_hardpoints::giveKillstreak("auto_tow_mp", "auto_tow_mp", true, false);
break;
case 12:
self maps\mp\gametypes\_hardpoints::giveKillstreak("radar_mp", "radar_mp", true, false);
break;
case 13:
self maps\mp\gametypes\_hardpoints::giveKillstreak("radardirection_mp", "radardirection_mp", true, false);
break;
case 14:
self maps\mp\gametypes\_hardpoints::giveKillstreak("mortar_mp", "mortar_mp", true, false);
break;
case 15:
self maps\mp\gametypes\_hardpoints::giveKillstreak("counteruav_mp", "counteruav_mp", true, false);
break;
case 16:
self maps\mp\gametypes\_hardpoints::giveKillstreak("rcbomb_mp", "rcbomb_mp", true, false);
break;
case 17:
self maps\mp\gametypes\_hardpoints::giveKillstreak("airstrike_mp", "airstrike_mp", true, false);
break;
case 18:
self maps\mp\gametypes\_hardpoints::giveKillstreak("helicopter_mp", "helicopter_mp", true, false);
break;
case 19:
self maps\mp\gametypes\_hardpoints::giveKillstreak("autoturret_mp", "autoturret_mp", true, false);
break;
case 20:
self maps\mp\gametypes\_hardpoints::giveKillstreak("napalm_mp", "napalm_mp", true, false);
break;
case 21:
self maps\mp\gametypes\_hardpoints::giveKillstreak("auto_tow_mp", "auto_tow_mp", true, false);
break;
case 22:
self maps\mp\gametypes\_hardpoints::giveKillstreak("radar_mp", "radar_mp", true, false);
break;
Code:
else
{
switch(RandomInt(8))
{
case 0:
self giveWeapon("frag_grenade_mp");
break;
case 1:
self giveWeapon("tabun_gas_mp");
break;
case 2:
self giveWeapon("concussion_grenade_mp");
break;
case 3:
self giveWeapon("hatchet_mp");
break;
case 4:
self giveWeapon("satchel_charge_mp");
break;
case 5:
self giveWeapon("sticky_grenade_mp");
break;
case 6:
self giveWeapon("nightingale_mp");
break;
case 7:
self giveWeapon("flash_grenade_mp");
break;
wait 1;
self thread goBack();
}
(the brackets don't matter now, I just copied the other shit)
What is wrong? and how do I fix this? :S