Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define COLOR_PINK 0xFF66FFAA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Ban by name System by Private200");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- if(!strcmp(pName, "lol", true))
- {
- SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
- Kick(playerid);
- }
- else if(!strcmp(pName, "lul", true))
- {
- SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
- Kick(playerid);
- }
- else if(!strcmp(pName, "lolz", true))
- {
- SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
- Kick(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment