Advertisement
Guest User

Guna

a guest
Dec 11th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. //Includes
  2. #include <sourcemod>
  3. #include <sdktools>
  4. #include <multicolors>
  5. #include <cstrike>
  6.  
  7. //Definitions
  8. #define PLUGIN_VERSION "1.0"
  9.  
  10. public Plugin:myinfo =
  11. {
  12. name = "Zbran na začátku kola",
  13. author = "DeadSwim",
  14. description = "Deagle",
  15. version = PLUGIN_VERSION,
  16. url = "www.madgames.eu"
  17. }
  18.  
  19. public OnPluginStart()
  20. {
  21. HookEvent("player_spawn", EventPlayerSpawn, EventHookMode_Post);
  22. }
  23.  
  24. public Action:EventPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) {
  25.  
  26. new client = GetClientOfUserId(GetEventInt(event, "userid"));
  27. new team = GetClientTeam(client);
  28. if (IsPlayerGenericAdmin(client))
  29. {
  30. GivePlayerItem(client,"weapon_deagle");
  31. PrintToChat(client, " [VIP] Jako VIP jsi získal Deagle!");
  32. }else{
  33. PrintToChat(client, " [VIP] Aby jsi mohl získat na začátku kola Deagle, kup si VIP!");
  34. }
  35.  
  36. }
  37. bool:IsPlayerGenericAdmin(client)
  38. {
  39. return CheckCommandAccess(client, "generic_admin", ADMFLAG_reservation, false);
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement