Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdkhooks>
- #include <sdktools>
- #include <codmod>
- #include <emitsoundany>
- #define PREFIX "\x01\x0B \x02[cs-placzabaw.pl]\x01"
- #define PUSH_SOUND "surf_dzwieki/push.mp3"
- #define DENY_SOUND "surf_dzwieki/deny.mp3"
- public void OnMapStart()
- {
- AddFileToDownloadsTable("sound/surf_dzwieki/push.mp3");
- AddFileToDownloadsTable("sound/surf_dzwieki/deny.mp3");
- PrecacheSoundAny(DENY_SOUND, true);
- PrecacheSoundAny(PUSH_SOUND, true);
- }
- public cod_class_skill_used(client)
- {
- if(IsFreezeTime() || !IsPlayerAlive(client))
- return;
- if(!ilosc_odepchniec[client])
- PrintToChat(client, "%s Wykorzystales juz moc swojej klasy w tym zyciu!", PREFIX);
- else
- {
- if(g_iPlayerTime[client]<=GetTime())
- {
- [[[[NIC WAŻNEGO]]]
- ilosc_odepchniec[client] --;
- EmitSoundToAllAny(PUSH_SOUND, client);
- g_iPlayerTime[client]=GetTime()+5;
- for (int i = 1; i <= MaxClients; i++)
- {
- if(!IsValidClient(i) || !IsPlayerAlive(i))
- continue;
- if(GetClientTeam(i) == GetClientTeam(client))
- continue;
- [[[[NIC WAŻNEGO]]]
- }
- }
- else
- {
- EmitSoundToClientAny(client, DENY_SOUND);
- PrintToChat(client, "%s Poczekaj chwile zanim uzyjesz ponownie mocy klasy!", PREFIX);
- return;
- }
Add Comment
Please, Sign In to add comment