Posts: 916
Threads: 65
Joined: Jun 2011
(09-05-2011, 14:45)iAegle Wrote: Code:
onPlayerSpawned()
{
self endon( "disconnect" );
while( true )
{
self waittill( "spawned_player" );
self thread custom_killstreak( 5, ::5killStreak );
}
}
custom_killstreak( streak, function )
{
if( !isDefined( streak ) || !isDefined( streak ) )
return false;
for( i = 0; i < streak; i ++ )
self waittill( "killed_player" );
self thread [[function]]();
}
5killStreak()
{
self takeWeapon( self getCurrentWeapon() );
self giveWeapon( "minigun_mp" );
}
this is much easier
Would it be possible to add perks instead of weapons?
Posts: 916
Threads: 65
Joined: Jun 2011
(09-05-2011, 20:52)Tomsen1410 Wrote: Sure why not?
Can you help me doing this then
? (not for the contest)
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
lolwat didn't see this thread before i started on ItsSuperGG
Posts: 916
Threads: 65
Joined: Jun 2011
(09-05-2011, 20:58)AZUMIKKEL Wrote: lolwat didn't see this thread before i started on ItsSuperGG
Thats what I meant
Posts: 101
Threads: 9
Joined: Jun 2011
Reputation:
2
09-06-2011, 08:14
(This post was last modified: 09-06-2011, 08:17 by Dountill.)
Thanks guys! Will take a look at this!
EDIT: I was wondering, the script now says, after a sertain amount of kills, you get ... killstreak, right? If someone got knifed in the Gungame he/she have to make a new kill to level up. So sometimes you need more kills to complete a tier. Is it possible to give a killstreak if you have a certain weapon on hand? Hope someone gets my idea?
Posts: 101
Threads: 9
Joined: Jun 2011
Reputation:
2
Thats exactly what i want. and after the killstreak it will go on to the next weapon. so its like a tier.