ZSkills: cleaning
This commit is contained in:
parent
470d01a67b
commit
33399428aa
@ -57,8 +57,6 @@ public void OnPluginStart()
|
||||
RegConsoleCmd("sm_zcleanse", Command_ZCleanse);
|
||||
|
||||
|
||||
|
||||
|
||||
HookEvent("round_start", Event_RoundStart);
|
||||
AutoExecConfig();
|
||||
}
|
||||
@ -68,6 +66,7 @@ public void OnPluginStart()
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
public void OnMapStart()
|
||||
{
|
||||
PrecacheSound("items/ammopickup.wav");
|
||||
PrecacheSound("unloze/extinguish.wav");
|
||||
AddFileToDownloadsTable("sound/unloze/extinguish.wav");
|
||||
}
|
||||
@ -133,6 +132,7 @@ public Action Command_ZAmmo(int client, int args)
|
||||
|
||||
g_bZAmmo_Active[client] = true;
|
||||
PrintToChat(client, "[ZAmmo] Enabling Infinite Ammo for %d seconds in exchange for %d$.", iDuration, iCost);
|
||||
EmitSoundToAll("items/ammopickup.wav", .entity=client, .volume=0.4);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
@ -182,7 +182,6 @@ public Action Command_ZCleanse(int client, int args)
|
||||
g_bZCleanse_Active[client] = true;
|
||||
g_bZCleanse_Uses[client]++;
|
||||
PrintToChat(client, "[ZCleanse] You are immune against napalm for the next %d seconds. (%d/%d) uses.", iDuration, g_bZCleanse_Uses[client], iMaxUses);
|
||||
//EmitSoundToClient(client, "unloze/extinguish.wav", .volume=1.0);
|
||||
EmitSoundToAll("unloze/extinguish.wav", .entity=client, .volume=0.4);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user