Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PlayerName(playerid, searchid = 0)
- {
- new Name[MAX_PLAYER_NAME];
- if(searchid != 1337)
- {
- GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
- }
- else
- {
- GetPVarString(playerid, "pUsername", Name, MAX_PLAYER_NAME);
- }
- return Name;
- }
- SetPlayerLevel(playerid, level)
- {
- SetPVarInt(playerid, "pLevel", level);
- new strinz[MAX_PLAYER_NAME];
- format(strinz, MAX_PLAYER_NAME, "[%d]%s", GetPVarInt(playerid, "pLevel"), PlayerName(playerid, 1337));
- SetPlayerName(playerid, strinz);
- return 1;
- }
Add Comment
Please, Sign In to add comment