[Help] Making a restricted name script
#1

So, I want to add a restricted name section into my script so that when a new player joins the server with a restricted name (eg name_restrictedname) it will send them a message telling them to change it, set a time for 350ms then kick the player.

pawn Код:
#include                    <a_samp>
#include                    <zcmd>
#include                    <YSI\y_ini>
#include                    <SSCANF2>
#include                    <foreach>
pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pLevel,
    pKills,
    pDeaths,
    pTimezone,
    pTimezoneEU,
    pTimezoneOC,
    pTimezoneNA,
    pHelperMod,
    pHelper,
    pNMuted,
    pOOCMuted
}
The admin commands would be

/viewrestrictednames - DIALOG_STYLE_MSGBOX, showing the list of all restricted names in the server, read from a .ini file (I guess, I'm not the best with Y_INI or any INI for that matter..). The "restricted names location" would be in scriptfiles/administration/'thefolder'.

/addrestrictedname - Adds a restricted name to the list.

/removerestrictedname - Removes a restricted name from the list.

/editrestrictednames - Allows to add/remove people to the authorization list (if they are on the authorization list then will not be kicked for having the name)



I'm new to these forums, sorry if this is in the wrong place.
Reply


Messages In This Thread
[Help] Making a restricted name script - by ConnorHunter - 21.07.2013, 19:38
Re: [Help] Making a restricted name script - by jueix - 21.07.2013, 20:04
Re: [Help] Making a restricted name script - by ConnorHunter - 21.07.2013, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)