Player ID in front of Player Name?
#1

I'm trying to set a players name as (just as an example)
Quote:

(1) iPoisonxL

So, for example, if I was to talk, it'd go like this:
Quote:

(1) iPoisonxL: hi!

I tried using
Код:
SetPlayerName();
but it doesn't work in OnPlayerConnect() callback apparently. Or am I just not using it right?

pawn Код:
new namelogon[100];
new newplayername[100];
public OnPlayerConnect(playerid)
{
        new logonmsg[100];
    GetPlayerName(playerid, namelogon, sizeof(namelogon));
    format(newplayername, sizeof(newplayername), "(%d) %s", playerid, namelogon);
    SetPlayerName(playerid, newplayername); //here i try to set the player name

    format(logonmsg, sizeof(logonmsg), "(%d) %s has joined the server. Say hi!", playerid, namelogon);
    SendClientMessageToAll(GREEN, logonmsg);
    return 1;
}
Reply


Messages In This Thread
Player ID in front of Player Name? - by iPoisonxL - 03.07.2013, 22:42
Re: Player ID in front of Player Name? - by shadowdog - 03.07.2013, 23:24
Re: Player ID in front of Player Name? - by iPoisonxL - 03.07.2013, 23:27
Re: Player ID in front of Player Name? - by BigGroter - 03.07.2013, 23:48
Re: Player ID in front of Player Name? - by iPoisonxL - 04.07.2013, 10:22
Re: Player ID in front of Player Name? - by Vince - 04.07.2013, 10:24
Re: Player ID in front of Player Name? - by iPoisonxL - 04.07.2013, 10:27
Re: Player ID in front of Player Name? - by Vince - 04.07.2013, 10:29
Re: Player ID in front of Player Name? - by RedFusion - 04.07.2013, 10:32
Re: Player ID in front of Player Name? - by TheMaxXx - 04.07.2013, 10:35

Forum Jump:


Users browsing this thread: 5 Guest(s)