27.12.2014, 11:11
1 player can change all prefixes for all players.
on the top
OnPlayerText
CMD:
on the top
Код:
new prefix[MAX_PLAYERS];
Код:
new customprefix[256]; new customprefixplayer[MAX_PLAYER_NAME]; GetPlayerName(playerid, customprefixplayer, sizeof(customprefixplayer)); format(customprefix, sizeof(customprefix), "{b800db}[{ffffff}%s{b800db}]{940000}%s: {ffffff}%s", prefix, customprefixplayer, text); SendClientMessageToAll(GetPlayerColor(playerid), customprefix);
Код:
new tag[16]; if(sscanf(params,"s[16]",tag)) return SendClientMessage(playerid, WHITE, "USAGE:/setmyprefix [text]"); format(prefix, sizeof(prefix), tag, prefix); return 1;