SA-MP Forums Archive
[Tutorial] About OnPlayerText - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Tutorial] About OnPlayerText (/showthread.php?tid=535490)



About OnPlayerText - M0HAMMAD - 04.09.2014

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


Re: About OnPlayerText - DhO0m - 04.09.2014

Lol awesome looking for this .


Re: About OnPlayerText - LivingLikeYouDo - 04.09.2014

What is this?


Re: About OnPlayerText - Ghazal - 04.09.2014

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

If you ask for reps, you won't get.


Re: About OnPlayerText - amirab - 04.09.2014

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


Re: About OnPlayerText - DhO0m - 04.09.2014

WRONG SECTION .

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



Re: About OnPlayerText - iFarbod - 04.09.2014

WRONG SECTION, And Very shitty INDENTATION.

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


Re: About OnPlayerText - Stinged - 04.09.2014

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


Re: About OnPlayerText - Tamer - 04.09.2014

My eyes were about to suicide because of this identation.


Re: About OnPlayerText - SanAndreasMP - 04.09.2014

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


Re: About OnPlayerText - M0HAMMAD - 05.09.2014

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


Re: About OnPlayerText - Twizted - 05.09.2014

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.