Change name
#3

Quote:
Originally Posted by XO
Посмотреть сообщение
There is a plugin made by ****** named Y_files

download from:https://mars-bots.******code.com/files/y_files.zip

and extract plugin in plugins folder ( use .so for linux )

at the top of your gamemode
pawn Код:
#include <YSI\y_files>
then replace your code with
pawn Код:
if(dialogid == DIALOG_CHANGENAME)
    {
        if (!response) return 1;
        if (response == 1)
        {
            if (!strlen(inputtext))
            {
                SendClientMessage(playerid,COLOR_RED,"Enter Your New Name.");
                ShowChangeNameScreen(playerid);
                return 1;
            }
            new stringr[MAX_PLAYER_NAME],another[MAX_PLAYER_NAME];
            format(stringr,MAX_PLAYER_NAME,"Users/%s.ini",PlayerName(playerid)); // You can change " Users " with the dic. where the users save.
            format(another,MAX_PLAYER_NAME,"Users/%s.ini",inputtext); // You can change " Users " with the dic. where the users save.
            frename(stringr, another);     
            SetPlayerName(playerid,inputtext);
            format(string,sizeof(string),"Changed Name To'%s'",inputtext);
            SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
            GivePlayerCash(playerid, -10000000);
            return true;
        }
        return 1;
    }
++

it works !!!
check out some admin scripts bro!
Reply


Messages In This Thread
Change name - by alishvasis - 20.02.2014, 15:16
Re: Change name - by xo - 20.02.2014, 15:30
Re: Change name - by Guest4390857394857 - 20.02.2014, 15:38
Re: Change name - by Konstantinos - 20.02.2014, 15:39
Re: Change name - by xo - 20.02.2014, 15:45
Re: Change name - by alishvasis - 20.02.2014, 18:43
Re: Change name - by xo - 20.02.2014, 18:45
Re: Change name - by alishvasis - 20.02.2014, 18:50
Re: Change name - by xo - 20.02.2014, 18:52
Re: Change name - by alishvasis - 20.02.2014, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)