how to change player name on game, i use dini for saving
#3

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 ;)
A base to make your command
Reply


Messages In This Thread
how to change player name on game, i use dini for saving - by Chrisli520 - 16.10.2013, 22:32
Re: how to change player name on game, i use dini for saving - by tyler12 - 16.10.2013, 22:36
Re: how to change player name on game, i use dini for saving - by Juniiro3 - 16.10.2013, 23:17

Forum Jump:


Users browsing this thread: 2 Guest(s)