Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #include <cstrike>
- public OnPluginStart() {
- HookEvent("player_connect", PlayerConnect);
- }
- public Action:PlayerConnect(Handle:event, const String:name[], bool:dontBroadcast) {
- new client = GetClientOfUserId(GetEventInt(event, "userid"))
- decl String:nome[65];
- GetClientName(client, nome, sizeof(nome));
- new String:invalid[][] = { "%", "&", "‡", "‰", "Š", "Œ", "š", "œ", "Ÿ", "¡" ,"Ð", "¢", "£", "¤", "¥", "§", "", "¯", "°", "±", "", "µ", "¶", "·", "¸", "¼", "½", "¾", "¿", "", "Å", "Æ", "×", "Ø", "Þ", "ß", "å", "æ", "ç", "ð", "÷", "ø", "þ", "ÿ", "€" };
- for(new i = 0; i <= 42; i++){
- if(StrContains(nome, invalid[i], false) != -1) {
- ServerCommand("kickid %i Seu Nick contem letras invalidas(tunadas) (%s), por favor, retire-as", GetEventInt(event, "userid"), invalid[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement