Advertisement
Zonas

Untitled

Jul 3rd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #pragma semicolon 1
  2.  
  3. #include <sourcemod>
  4. #include <sdktools>
  5. #include <morecolors>
  6.  
  7. #define PLUGIN_AUTHOR "Zonas"
  8. #define PLUGIN_VERSION "1.00"
  9.  
  10. #define SIZE 255
  11.  
  12. #pragma newdecls required
  13.  
  14. public Plugin myinfo =
  15. {
  16. name = "[TF2] TROLL",
  17. author = PLUGIN_AUTHOR,
  18. description = "",
  19. version = PLUGIN_VERSION,
  20. url = "id/zonekoisback"
  21. };
  22.  
  23. public void OnPluginStart() {
  24. LoadTranslations("common.phrases");
  25. RegConsoleCmd("sm_rtd", Command_rtd, "rtd");
  26. }
  27.  
  28. public Action Command_rtd(int client, int args)
  29. {
  30. if (0 < client <= MaxClients && IsClientInGame(client) && IsPlayerAlive(client))
  31. {
  32. if (args > 1 || args < 0)
  33. {
  34. CPrintToChat(client, "{FULLRED}[SVH] {TURQUOISE}Usage: {DARKGRAY}sm_rtd");
  35. return Plugin_Handled;
  36. }
  37. else if (args == 0)
  38. {
  39. CPrintToChatAll("{FULLRED}[SVH] {TURQUOISE}%N {DARKGRAY}Rolled Slay!", client);
  40. ForcePlayerSuicide(client);
  41. return Plugin_Handled;
  42. }
  43. }
  44. else
  45. {
  46. CPrintToChat(client, "{FULLRED}[SVH] {TURQUOISE}Usage: You must be alive to use this command");
  47. }
  48. return Plugin_Handled;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement