[Tutorial] About OnPlayerText
#1

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
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);
If You Want Add More , Like a Text For "ADMIN" Or "RCON" You Must Add a if Like This :
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);
}
Remember : pAdminLevel It's A Example.
If Some One Have a Problem Asked Here .
* Sorry For My Bad English
** Don't Forget +Rep Me
Reply


Messages In This Thread
About OnPlayerText - by M0HAMMAD - 04.09.2014, 09:36
Re: About OnPlayerText - by DhO0m - 04.09.2014, 11:13
Re: About OnPlayerText - by LivingLikeYouDo - 04.09.2014, 11:16
Re: About OnPlayerText - by Ghazal - 04.09.2014, 11:16
Re: About OnPlayerText - by amirab - 04.09.2014, 13:51
Re: About OnPlayerText - by DhO0m - 04.09.2014, 15:18
Re: About OnPlayerText - by iFarbod - 04.09.2014, 16:52
Re: About OnPlayerText - by Stinged - 04.09.2014, 17:13
Re: About OnPlayerText - by Tamer - 04.09.2014, 17:13
Re: About OnPlayerText - by SanAndreasMP - 04.09.2014, 17:47
Re: About OnPlayerText - by M0HAMMAD - 05.09.2014, 10:54
Re: About OnPlayerText - by Twizted - 05.09.2014, 11:00

Forum Jump:


Users browsing this thread: 3 Guest(s)