Guest4390857394857
Unregistered
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
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!