I'm wondering how can i add something to a player's name?
#1

Heres what i'd want:

Код:
Command:/tagme

Function:Adds [TNNP] On The End of The Nickname of the Player that did the function

Example:

PlayerName: Asdf

PlayerTypes: /tagme

Playername: Asdf[TNNP]
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
  if(!strcmp(cmdtext,"/tagme",true))
  {
    new pName[MAX_PLAYER_NAME], npName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,sizeof pName);
    format(npName,sizeof npName,"%s[TNNP]",pName);
    SetPlayerName(playerid,npName);
    return 1;
  }
  return 0;
}
MAX_PLAYER_NAME is 24, and it can't be set higher then that. So if the player's name is 19 characters or more, the tag won't show (Tag size = 6, 19 + 6 = 25)
Reply
#3

don't watch this msg
Reply
#4

OH LOL I forgot that XDDDDDDDDDDDD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)