Help with inserting...
#1

hy...
I need when I enter command /bm to in my nick insert [BM]

like this:

Lukica
/bm
[BM]Lukica

Without leaving the game
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerName
https://sampwiki.blast.hk/wiki/SetPlayerName
Reply
#3

I try but dont work
Reply
#4

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp("/bm", cmdtext, true))
  {
    new pName[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));

    format(string, sizeof(string), "[BM]%s", pName);
    SetPlayerName(playerid, string);
    return 1;
  }
  return 0;
}
Something like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)