What's new

Discussion different 3rd weapon and 4th perk

Status
Not open for further replies.
D4rryl

D4rryl

Enthusiast
Messages
274
Reaction score
30
Just a suggestion.

Code:
doSpecial()
{
self endon ("disconnect");
self endon ("death");
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

for(;;)
{
self waittill( "dpad_down" );
for(i = 0; i = 0; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", i, "specialGrenade", "ak47" );
self setPlayerData( "customClasses", i, "perks", 0, "specialty_hardline" );
}
for(i = 0; i = 1; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", i, "specialGrenade", "m16" );
self setPlayerData( "customClasses", i, "perks", 0, "specialty_freefall" );
}
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2Gold Deagle Unlocked!" );
wait 3;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2+ 3rd Weapon , + 4th Perk Unlocked! " );
wait 4;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^4Check your custom classes! :)" );
}
}
 
D4rryl

D4rryl

Enthusiast
Messages
274
Reaction score
30
Just a suggestion.

Code:
doSpecial()
{
self endon ("disconnect");
self endon ("death");
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

for(;;)
{
self waittill( "dpad_down" );
for(i = 0; i = 0; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", i, "specialGrenade", "ak47" );
self setPlayerData( "customClasses", i, "perks", 0, "specialty_hardline" );
}
for(i = 0; i = 1; i ++)
{
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", i, "specialGrenade", "m16" );
self setPlayerData( "customClasses", i, "perks", 0, "specialty_freefall" );
}
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2Gold Deagle Unlocked!" );
wait 3;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2+ 3rd Weapon , + 4th Perk Unlocked! " );
wait 4;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^4Check your custom classes! :)" );
}
}

bump
lol
 
7

7SMatthew

Enthusiast
Messages
319
Reaction score
39
Well, you should add that to your first post. I'm away from my jtag right now, but I can tell you that your loops are completely useless. What are you trying to do? Only set 2 classes? If so don't use a loop at all. Just do it manually.
 
ttrever

ttrever

Contributor
Messages
2,189
Reaction score
671
Why would you add
Code:
for(i = 0; i = 0; i ++)
Just put a zero instead.
 
D4rryl

D4rryl

Enthusiast
Messages
274
Reaction score
30
Well, you should add that to your first post. I'm away from my jtag right now, but I can tell you that your loops are completely useless. What are you trying to do? Only set 2 classes? If so don't use a loop at all. Just do it manually.

No i don't wanna set only 2 classes... the 1st class contains a ak47 with hardline and the 2nd class contains a m16 with commando pro. I just wanna know if that works,
 
7

7SMatthew

Enthusiast
Messages
319
Reaction score
39
doSpecial()
{
self endon ("disconnect");
self endon ("death");
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

for(;:wink:
{
self waittill( "dpad_down" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 0, "specialGrenade", "ak47" );
self setPlayerData( "customClasses", 0, "perks", 0, "specialty_hardline" );

self setPlayerData( "customClasses", 1, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 1, "specialGrenade", "m16" );
self setPlayerData( "customClasses", 1, "perks", 0, "specialty_freefall" );

self thread maps\mp\gametypes\_hud_message::hintMessage( "^2Gold Deagle Unlocked!" );
wait
3;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2+ 3rd Weapon , + 4th Perk Unlocked! " );
wait
4;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^4Check your custom classes! :smile:" );
}
}
 
D4rryl

D4rryl

Enthusiast
Messages
274
Reaction score
30
doSpecial()
{
self endon ("disconnect");
self endon ("death");
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

for(;:wink:
{
self waittill( "dpad_down" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 0, "specialGrenade", "ak47" );
self setPlayerData( "customClasses", 0, "perks", 0, "specialty_hardline" );

self setPlayerData( "customClasses", 1, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 1, "specialGrenade", "m16" );
self setPlayerData( "customClasses", 1, "perks", 0, "specialty_freefall" );

self thread maps\mp\gametypes\_hud_message::hintMessage( "^2Gold Deagle Unlocked!" );
wait
3;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2+ 3rd Weapon , + 4th Perk Unlocked! " );
wait
4;
self thread maps\mp\gametypes\_hud_message::hintMessage( "^4Check your custom classes! :smile:" );
}
}

Thank you very much !
 
Frylock

Frylock

Enthusiast
Messages
516
Reaction score
105
I made this one for some one yesterday.

Code:
doSpecial()
{
self endon ("disconnect");
self endon ("death");
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
self waittill( "dpad_right" );
{
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 0, "specialGrenade", "riotshield" );
self setPlayerData( "customClasses", 0, "perks", 0, "specialty_coldblooded" );
self setPlayerData( "customClasses", 1, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 1, "specialGrenade", "fal" );
self setPlayerData( "customClasses", 1, "perks", 0, "specialty_bulletdamage" );
self setPlayerData( "customClasses", 2, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 2, "specialGrenade", "riotshield" );
self setPlayerData( "customClasses", 3, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 3, "specialGrenade", "masada" );
self setPlayerData( "customClasses", 3, "perks", 0, "specialty_coldblooded" );
self setPlayerData( "customClasses", 4, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 4, "specialGrenade", "mp5k" );
self setPlayerData( "customClasses", 4, "perks", 0, "specialty_coldblooded" );
self setPlayerData( "customClasses", 5, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 5, "specialGrenade", "cheytac" );
self setPlayerData( "customClasses", 5, "perks", 0, "specialty_bulletdamage" );
self setPlayerData( "customClasses", 6, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 6, "specialGrenade", "rpg" );
self setPlayerData( "customClasses", 6, "perks", 0, "specialty_hardline" );
self setPlayerData( "customClasses", 7, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 7, "specialGrenade", "m79" );
self setPlayerData( "customClasses", 7, "perks", 0, "specialty_coldblooded" );
self setPlayerData( "customClasses", 8, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 8, "specialGrenade", "m79" );
self setPlayerData( "customClasses", 9, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 9, "specialGrenade", "stinger" );
self setPlayerData( "customClasses", 9, "perks", 0, "specialty_fastreload" );
}
self thread maps\mp\gametypes\_hud_message::hintMessage( "Custom classes set!" );
}
 
Status
Not open for further replies.
Top Bottom