[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

Lol awesome looking for this .
Reply
#3

What is this?
Reply
#4

That cant be called a tutorial, you didn't explain anything ..

If you ask for reps, you won't get.
Reply
#5

Shity work.
no efforts , no explaning , not pro. or atleast normal and....
if someone's script has a another var to set player admin level , what should he do?
Try more maybe next time you will understant somethings like : how to post a tutorial or
actually this :

WRONG SECTION

who said you should post here?

and another things ,
about reps
i was like you but now i understant why the others told me about that
check my sign a lot of people are like this
Reply
#6

WRONG SECTION .

pawn Код:
This forum requires that you wait 120 seconds between posts. Please try again in 39 seconds.
Reply
#7

WRONG SECTION, And Very shitty INDENTATION.

Also, you must return 0 in onPlayerText to aviod sending default player messages.
Reply
#8

The moment I see "give me rep", I stop giving a fuck about being nice.
Reply
#9

My eyes were about to suicide because of this identation.
Reply
#10

I'd rather like to die. This is a shit! And what an Indentation! Claps for you mate.
Reply
#11

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.
The Original Thread : https://sampforum.blast.hk/showthread.php?tid=535505 | This Post Well Be Soon Delete
Reply
#12

I'm quite skeptic about this. I'm not sure if the worse is the poor indentation or the Eastern Europe/West Asia community members trying to communicate with eachother.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)