/changename command HELP
#1

Hello!

I need help with my /changename command. Everything is working fine, but wheh I change my name and then leave game and come back, is still the same name.

CODE:

PHP код:
CMD:changename(playeridparams[])
{
    if(
gPlayerInfo[playerid][PLAYER_LEVEL] < 4) return SendClientMessage(playeridCOLOR_RED"You are not allowed to use this command!");
    new 
idnewname[24];
    if(
sscanf(params,"is[24]",idnewname))
        return 
SendClientMessage(playeridCOLOR_RED"Usage: /changename [player id] [new name]");
    if(!
IsPlayerConnected(id))
        return 
SendClientMessage(playeridCOLOR_RED"ERROR: This player is not connected.");
    
SetPlayerName(idnewname);
    
SendClientMessage(playeridCOLOR_YELLOW"You have successfuly changed his/her name.");
    return 
1;

Thanks for your help
Reply


Messages In This Thread
/changename command HELP - by Areax - 06.04.2013, 18:49
Re: /changename command HELP - by venomlivno8 - 06.04.2013, 18:51
Re: /changename command HELP - by Areax - 06.04.2013, 18:52
Re: /changename command HELP - by venomlivno8 - 06.04.2013, 18:53
Re: /changename command HELP - by Areax - 06.04.2013, 18:55
Re: /changename command HELP - by Areax - 06.04.2013, 19:09
Respuesta: /changename command HELP - by Onfroi - 06.04.2013, 20:10
Re: /changename command HELP - by NewCityRoleplay - 06.04.2013, 21:53
Re: /changename command HELP - by MattSlater - 06.04.2013, 22:53
Re: /changename command HELP - by HurtLocker - 06.04.2013, 23:28

Forum Jump:


Users browsing this thread: 1 Guest(s)