mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-06-30 00:01:51 +00:00
Create disable_nuke_killstreak
This commit is contained in:
26
small_scripts/disable_nuke_killstreak.gsc
Normal file
26
small_scripts/disable_nuke_killstreak.gsc
Normal file
@ -0,0 +1,26 @@
|
||||
Init()
|
||||
{
|
||||
level thread OnPlayerConnect();
|
||||
}
|
||||
|
||||
OnPlayerConnect()
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
level waittill("connected", player);
|
||||
|
||||
player thread OnPlayerSpawned();
|
||||
}
|
||||
}
|
||||
|
||||
OnPlayerSpawned()
|
||||
{
|
||||
self endon("disconnect");
|
||||
|
||||
for(;;)
|
||||
{
|
||||
self waittill("spawned_player");
|
||||
|
||||
self.pers["cur_kill_streak_for_nuke"] = -999;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user