Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #include <sourcemod>
- #include <sdktools>
- #include <morecolors>
- #define PLUGIN_AUTHOR "Zonas"
- #define PLUGIN_VERSION "1.00"
- #define SIZE 255
- #pragma newdecls required
- public Plugin myinfo =
- {
- name = "[TF2] TROLL",
- author = PLUGIN_AUTHOR,
- description = "",
- version = PLUGIN_VERSION,
- url = "id/zonekoisback"
- };
- public void OnPluginStart() {
- LoadTranslations("common.phrases");
- RegConsoleCmd("sm_rtd", Command_rtd, "rtd");
- }
- public Action Command_rtd(int client, int args)
- {
- if (0 < client <= MaxClients && IsClientInGame(client) && IsPlayerAlive(client))
- {
- if (args > 1 || args < 0)
- {
- CPrintToChat(client, "{FULLRED}[SVH] {TURQUOISE}Usage: {DARKGRAY}sm_rtd");
- return Plugin_Handled;
- }
- else if (args == 0)
- {
- CPrintToChatAll("{FULLRED}[SVH] {TURQUOISE}%N {DARKGRAY}Rolled Slay!", client);
- ForcePlayerSuicide(client);
- return Plugin_Handled;
- }
- }
- else
- {
- CPrintToChat(client, "{FULLRED}[SVH] {TURQUOISE}Usage: You must be alive to use this command");
- }
- return Plugin_Handled;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement