Guest User

Untitled

a guest
Jul 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.53 KB | None | 0 0
  1. PlayerName(playerid, searchid = 0)
  2. {
  3.    new Name[MAX_PLAYER_NAME];
  4.    if(searchid != 1337)
  5.    {
  6.       GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
  7.    }
  8.    else
  9.    {
  10.       GetPVarString(playerid, "pUsername", Name, MAX_PLAYER_NAME);
  11.    }
  12.    return Name;
  13. }
  14.  
  15. SetPlayerLevel(playerid, level)
  16. {
  17.    SetPVarInt(playerid, "pLevel", level);
  18.    new strinz[MAX_PLAYER_NAME];
  19.    format(strinz, MAX_PLAYER_NAME, "[%d]%s", GetPVarInt(playerid, "pLevel"), PlayerName(playerid, 1337));
  20.    SetPlayerName(playerid, strinz);
  21.    return 1;
  22. }
Add Comment
Please, Sign In to add comment