Helpkillstreaks and throwing knife

Posts 1–10 of 10 · Page 1 of 1
killstreaks and throwing knife
Hi
i want to insert in my mod some thing
1st with 5 kills an uav
2nd with 7 kill counter-uav
3rd a throwing knife for all players

that is an only sniper mod

thank you for helping me
I seen a how to make killstreaks here..
But here is a nooby way:
Code:
KS()
{
self endon("death");
self endon("disconnect");

i = 0;
for(;;)
{
self waittill("killed_enemy");
i++;
if(i==5)
{
//Give UAV KS
}
if(i==7)
{
//Counter UAV
}
if(i==10)
{
//throw Knife
}
//wait 0.5;//Maybe change to 1. Don't think you need it :p
}
}
thank you i try it
Quote Originally Posted by SAS46 View Post
thank you i try it
Good luck
it doesn't work
Quote Originally Posted by SAS46 View Post
it doesn't work
And what don't work?
The counting system or syntax?
it doesn't say nothing
the server start but: uav and killstreaks doesn't work
Do i have to add any command on onplayerspawned?
Quote Originally Posted by SAS46 View Post
it doesn't say nothing
the server start but: uav and killstreaks doesn't work
Do i have to add any command on onplayerspawned?
Have't you threaded it?!

self thread KS();
Of course it won't work. There's nothing there actually telling it to give the killstreak. He just left comments there to let you figure it out yourself.
To give a killstreak

Code:
self maps\mp\killstreaks\_killstreaks::giveKillstreak("killstreak");
To give a throwing knife:

Code:
self _setPerk("throwingknife_mp");
self SetWeaponAmmoClip("throwingknife_mp",1);
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us