Guest User

Untitled

a guest
Nov 3rd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdkhooks>
  3. #include <sdktools>
  4. #include <codmod>
  5. #include <emitsoundany>
  6.  
  7. #define PREFIX "\x01\x0B \x02[cs-placzabaw.pl]\x01"
  8. #define PUSH_SOUND "surf_dzwieki/push.mp3"
  9. #define DENY_SOUND "surf_dzwieki/deny.mp3"
  10.  
  11. public void OnMapStart()
  12. {
  13. AddFileToDownloadsTable("sound/surf_dzwieki/push.mp3");
  14. AddFileToDownloadsTable("sound/surf_dzwieki/deny.mp3");
  15. PrecacheSoundAny(DENY_SOUND, true);
  16. PrecacheSoundAny(PUSH_SOUND, true);
  17. }
  18. public cod_class_skill_used(client)
  19. {
  20. if(IsFreezeTime() || !IsPlayerAlive(client))
  21. return;
  22. if(!ilosc_odepchniec[client])
  23. PrintToChat(client, "%s Wykorzystales juz moc swojej klasy w tym zyciu!", PREFIX);
  24. else
  25. {
  26. if(g_iPlayerTime[client]<=GetTime())
  27. {
  28. [[[[NIC WAŻNEGO]]]
  29. ilosc_odepchniec[client] --;
  30. EmitSoundToAllAny(PUSH_SOUND, client);
  31. g_iPlayerTime[client]=GetTime()+5;
  32. for (int i = 1; i <= MaxClients; i++)
  33. {
  34. if(!IsValidClient(i) || !IsPlayerAlive(i))
  35. continue;
  36.  
  37. if(GetClientTeam(i) == GetClientTeam(client))
  38. continue;
  39.  
  40. [[[[NIC WAŻNEGO]]]
  41. }
  42. }
  43. else
  44. {
  45. EmitSoundToClientAny(client, DENY_SOUND);
  46. PrintToChat(client, "%s Poczekaj chwile zanim uzyjesz ponownie mocy klasy!", PREFIX);
  47. return;
  48. }
Add Comment
Please, Sign In to add comment