16.10.2013, 23:17
pawn Code:
CMD:changename ( playerid , params [ ] )
{
new newName [ MAX_PLAYER_NAME ];
if ( sscanf ( params , "s[24]" , newName ) )
return SendClientMessage ( playerid , 0xFF0000FF , "[ERROR] Use /changename [ new Name ]" );
SetPlayerName ( playerid , newName );
return 1;
}
//OnPlayerDisconnect
if ( !fexists ( "LARP/Users/%s.txt" ) ) //format your string to do it
fcreate ( "LARP/Users/%s.txt");
//Now, save player account in the new directory ;)