[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
#2

Umm, can you explain more ?
Reply
#3

This isn't a tutorial, this is you copy and pasting a bunch of code from your gamemode that explains nothing at all.
Reply
#4

amirab Please Don't Say one More Word ! Not Pro ? Ha ? Your Scripts Are Copy, Your Maps Are Copy Form unknown Servers.
And Others, Don't Need To Tell Me WRONG SECTION , I Know . I Say To ****** To Delete This Post.
------------------
.Lot of My Friends Are Newbie In Pawn, That's Why I Created This Thread.
Reply
#5

Why Do You Speak Like This? This Is Not The Right Way To Speak English.

I just wonder why it's so hard for people to speak good English, not perfect or great, but just good.
Reply
#6

Using switch would be 100% better!
Reply
#7

Best Tutorial.
Thank You.+Rep
Reply
#8

I don't think that i posted here so why your'e using my name?
P.S. persian: bache koochooloo age male man copie male to chie?
harmoghe toonesty access be wiki.sa-mp.com bia jelo man zire ------ ham bemoon.....

If you think your'e scripter be sure your'e not like some NooBish scripts in your server
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)