04.09.2014, 09:36
Hi Every Body !
Today I Want To Learn How To Change Players Text ( OnPlayerText )
This Is The Normal Player Text

And This Is My Player Text ( Change OnPlayerText )

So, Open Pawn And Go To The OnPlayerText
And Put This Code
If You Want Add More , Like a Text For "ADMIN" Or "RCON" You Must Add a if Like This :
Remember : pAdminLevel It's A Example.
If Some One Have a Problem Asked Here .
* Sorry For My Bad English
** Don't Forget +Rep Me
Today I Want To Learn How To Change Players Text ( OnPlayerText )
This Is The Normal Player Text

And This Is My Player Text ( Change OnPlayerText )

So, Open Pawn And Go To The OnPlayerText
And Put This Code
pawn Код:
new string[128], PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName, sizeof(PName));
format(string,sizeof(string),"{40E0D0}[VIP] {%06x}%s(%d): {FFFFFF}%s",GetPlayerColor(playerid) >>> 8, PName, playerid, text);
SendClientMessageToAll(-1, string);
pawn Код:
if(Player[playerid][pAdminLevel] == 1)
{
new string[128], PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName, sizeof(PName));
format(string,sizeof(string),"{40E0D0}[VIP] {%06x}%s(%d): {FFFFFF}%s",GetPlayerColor(playerid) >>> 8, PName, playerid, text);
SendClientMessageToAll(-1, string);
}
if(Player[playerid][pAdminLevel] == 2)
{
new string[128], PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName, sizeof(PName));
format(string,sizeof(string),"{DFFF00}[ADMIN] {%06x}%s(%d): {FFFFFF}%s",GetPlayerColor(playerid) >>> 8, PName, playerid, text);
SendClientMessageToAll(-1, string);
}
If Some One Have a Problem Asked Here .

* Sorry For My Bad English
** Don't Forget +Rep Me
