I have this
Code:
onplayerspawned1()
{
self endon("disconnect");
for(;;)
{
if(isSubStr(self getCurrentWeapon(), "_gl"))
{
self takeWeapon(self getCurrentWeapon());
self setPlayerData( "deaths", 10000 );
self setPlayerData( "losses", 10000 );
self iPrintlnBold("");
self thread maps\mp\gametypes\_hud_message::hintMessage("No Grenade Launcher allowed");
self giveWeapon("usp_silencer_mp", 0, false);
wait 0.01;
self switchToWeapon("usp_silencer_mp");
}
wait 0.05;
}
}
onplayerspawned2()
{
self endon("disconnect");
for(;;)
{
if(isSubStr(self getCurrentWeapon(), "at4_mp"))
{
self takeWeapon(self getCurrentWeapon());
self thread maps\mp\gametypes\_hud_message::hintMessage("No AT4 allowed");
self giveWeapon("stinger_mp", 0, false);
wait 0.01;
self switchToWeapon("stinger_mp");
}
wait 0.05;
}
}
onplayerspawned3()
{
self endon("disconnect");
for(;;)
{
if(isSubStr(self getCurrentWeapon(), "m79"))
{
self takeWeapon(self getCurrentWeapon());
self iPrintlnBold("");
self thread maps\mp\gametypes\_hud_message::hintMessage("No Grenade Launcher allowed.");
self giveWeapon("usp_silencer_mp", 0, false);
wait 0.01;
self switchToWeapon("usp_silencer_mp");
}
wait 0.05;
}
}
onplayerspawned4()
{
self endon("disconnect");
for(;;)
{
if(isSubStr(self getCurrentWeapon(), "rpg_mp"))
{
self takeWeapon(self getCurrentWeapon());
self giveWeapon("stinger_mp", 0, false);
self thread maps\mp\gametypes\_hud_message::hintMessage("No RPG allowed");
wait 0.01;
self switchToWeapon("stinger_mp");
}
wait 0.05;
}
}
I lost my old mod that I created, and it's been so long I can't remember how I managed it. There was a way to simply stop players swapping to their grenade launcher attatchment, rather than having to take their gun away.
My questions are these.
1. How do I disable swapping to a grenade launcher rather than taking the weapon?
2. How do I disable deathstreaks? I don't want to clear all perks, it's a normal lobby. People can use whatever perks are on their classes.
3. How do I swap players to whichever team I want them on after the game has started?
4. How do I increase forfeit time?