20.02.2014, 15:30
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
then replace your code with
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>
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;
}