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 .
![Smiley](images/smilies/smile.png)
* 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
![undecided](images/smilies/neutral.gif)
:
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
![undecided](images/smilies/neutral.gif)
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.
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
![cheesy](images/smilies/lol.gif)
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.
------------------
![undecided](images/smilies/neutral.gif)
.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.