Hi mpgh,
I am creating a mod, but i've run in to three problems untill now, and i hope that somebody could help me
1st: I want to make something where you spawn, and you can select a class you get, but the classes are different for tf141 and russians, is there a way that i can check on which team the player is?
2nd: I am trying to use actionslots to select a class, but my actionslot doesn't do anything, and it says it's unbound
Code i use below
Code:
doClass()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("n", "+actionslot 1");
while ( 1 )
{
self iPrintlnBold("Press [{+actionslot1}] for SpecOps class");
self waittill( "[{+actionslot1}]" );
self thread doSPOclass();
}
}
doSPOclass()
{
self giveWeapon( "masada_reflex_mp", 0, false );self GiveMaxAmmo("masada_reflex_mp");
self giveWeapon( "cheytac_fmj_xmags_mp", 0, false );self GiveMaxAmmo("cheytac_fmj_xmags_mp");
self giveWeapon( "usp_akimbo_fmj_mp", 0, false );self GiveMaxAmmo("usp_akimbo_fmj_mp");
self switchToWeapon("masada_reflex_mp");
setDvar("laserForceOn", 1);
setDvar("perk_weapSpreadMultiplier" , 0.3);
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
self maps\mp\perks\_perks::givePerk("specialty_extraammo");
self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
}
3rd: How can i disable an actionslot after it's used?
Thanks in advance
- Yaxxo