Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Skillah Renamer
- #include <sourcemod>
- #include <sdktools>
- #include <sdkhooks>
- #define WHITE 0x01
- #define DARKRED 0x02
- #define PURPLE 0x03
- #define GREEN 0x04
- #define MOSSGREEN 0x05
- #define LIMEGREEN 0x06
- #define RED 0x07
- #define ORANGE 0x10
- #define GRAY 0x08
- #define YELLOW 0x09
- #define DARKGREY 0x0A
- #define BLUE 0x0B
- #define DARKBLUE 0x0C
- #define LIGHTBLUE 0x0D
- #define PINK 0x0E
- #define LIGHTRED 0x0F
- #define VERSION "1.0"
- char g_szSteamID[MAXPLAYERS + 1][32]; // Client's steamID
- char Skillahsname[MAX_NAME_LENGTH];
- public Plugin myinfo =
- {
- name = "Skillah Renamer",
- author = "[D]emoan",
- description = "Rename skillah for using shit cunt names",
- url = "",
- version = VERSION,
- };
- public void OnClientPutInServer(int client)
- {
- CreateTimer(1.0, SkillahRename, client, TIMER_REPEAT);
- GetClientAuthId(client, AuthId_Steam2, g_szSteamID[client], MAX_NAME_LENGTH, true);
- }
- public Action SkillahRename(Handle timer, any client)
- {
- if (StrEqual(g_szSteamID[client], "STEAM_1:1:186867964"))
- {
- GetClientName(client, Skillahsname, MAX_NAME_LENGTH);
- if (!StrEqual("Skillah is a fag", Skillahsname))
- {
- ServerCommand("sm_rename #%i \"Skillah is a fag\"", GetClientUserId(client));
- }
- }
- else
- {
- return Plugin_Stop;
- }
- return Plugin_Handled;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement