Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. //Skillah Renamer
  2. #include <sourcemod>
  3. #include <sdktools>
  4. #include <sdkhooks>
  5.  
  6. #define WHITE 0x01
  7. #define DARKRED 0x02
  8. #define PURPLE 0x03
  9. #define GREEN 0x04
  10. #define MOSSGREEN 0x05
  11. #define LIMEGREEN 0x06
  12. #define RED 0x07
  13. #define ORANGE 0x10
  14. #define GRAY 0x08
  15. #define YELLOW 0x09
  16. #define DARKGREY 0x0A
  17. #define BLUE 0x0B
  18. #define DARKBLUE 0x0C
  19. #define LIGHTBLUE 0x0D
  20. #define PINK 0x0E
  21. #define LIGHTRED 0x0F
  22.  
  23. #define VERSION "1.0"
  24.  
  25. char g_szSteamID[MAXPLAYERS + 1][32]; // Client's steamID
  26. char Skillahsname[MAX_NAME_LENGTH];
  27.  
  28. public Plugin myinfo =
  29. {
  30. name = "Skillah Renamer",
  31. author = "[D]emoan",
  32. description = "Rename skillah for using shit cunt names",
  33. url = "",
  34. version = VERSION,
  35. };
  36.  
  37.  
  38. public void OnClientPutInServer(int client)
  39. {
  40. CreateTimer(1.0, SkillahRename, client, TIMER_REPEAT);
  41. GetClientAuthId(client, AuthId_Steam2, g_szSteamID[client], MAX_NAME_LENGTH, true);
  42. }
  43.  
  44. public Action SkillahRename(Handle timer, any client)
  45. {
  46. if (StrEqual(g_szSteamID[client], "STEAM_1:1:186867964"))
  47. {
  48. GetClientName(client, Skillahsname, MAX_NAME_LENGTH);
  49. if (!StrEqual("Skillah is a fag", Skillahsname))
  50. {
  51. ServerCommand("sm_rename #%i \"Skillah is a fag\"", GetClientUserId(client));
  52. }
  53. }
  54. else
  55. {
  56. return Plugin_Stop;
  57. }
  58. return Plugin_Handled;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement