Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1.  
  2. #include <sourcemod>
  3. #include <sdktools>
  4. #include <cstrike>
  5. #include <geoip.inc>
  6. #include <string.inc>
  7. #include <stocklib>
  8. #include "sdkhooks"
  9.  
  10. new bool:CoolTime = false;
  11.  
  12. public OnPluginStart()
  13. {
  14. RegConsoleCmd("jointeam", Command_JoinTeam1);
  15. HookEvent("player_team", OnPlayerJoinTeam, EventHookMode_Pre);
  16. }
  17.  
  18. public Action:OnPlayerJoinTeam(Handle:event, const String:name[], bool:broadcast)
  19. {
  20. return Plugin_Handled;
  21. }
  22.  
  23. public Action:Command_JoinTeam1(Client, Arguments)
  24. {
  25. decl String:Arg[8];
  26. GetCmdArg(1, Arg, sizeof(Arg));
  27.  
  28. if(StrEqual(Arg, "1"))
  29. {
  30. PrintToChatAll("%N 님이 관전으로 조인하셨습니다.", Client);
  31. }
  32. else if(StrEqual(Arg, "2"))
  33. {
  34. PrintToChatAll("%N 님이 테러리스트로 조인하셨습니다.", Client);
  35. }
  36. else if(StrEqual(Arg, "3"))
  37. {
  38. PrintToChatAll("%N 님이 대 테러리스트로 조인하셨습니다.", Client);
  39. }
  40. else if(StrEqual(Arg, "0"))
  41. {
  42. new GetTeam = GetClientTeam(Client);
  43.  
  44. if(GetTeam == 2)
  45. {
  46. PrintToChatAll("%N 님이 테러리스트로 조인하셨습니다.", Client);
  47. }
  48. else if(GetTeam == 3)
  49. {
  50. PrintToChatAll("%N 님이 대 테러리스트로 조인하셨습니다.", Client);
  51. }
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement