A example? - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A example? (
/showthread.php?tid=580988)
A example? -
Passmerd - 09.07.2015
I want when player goes on-duty (( or the duty variable true )).
Instead of "Johnny Mercenov says: It's simple"
"(( <Administrator> Johnny Mercenov: It's simple ))"
And that's only when the player on admin duty
Re: A example? -
Michael B - 09.07.2015
Post your command here in order to help you.
Re: A example? -
Passmerd - 09.07.2015
I don't need a repair. All I want is when player is on-duty and speaks in in-character (or main chat)
From Name_Name says: yoyo
To (( <Administrator> Name_Name: yoyo ))
Re: A example? -
muzammilfreeman - 09.07.2015
Quote:
Originally Posted by Michael B
Post your command here in order to help you.
|
He means that he want's a code for his gamemode..
Re: A example? -
Passmerd - 09.07.2015
Quote:
Originally Posted by muzammilfreeman
He means that he want's a code for his gamemode..
|
Did you read the title bro?
Or you just want to spam the topic with your useless explanations?
Re: A example? -
SilentSoul - 10.07.2015
pawn Код:
new
bool:yourdutyvar[ MAX_PLAYERS] ;
public OnPlayerText(playerid, text[])
{
if( yourdutyvar[ playerid ] == true )
{
new
str[ 144 ], pname[ MAX_PLAYER_NAME - 1 ]
;
GetPlayerName( playerid, pname, sizeof( pname ) ) ;
format( str, sizeof( str ) , "<Administrator> %s: %s", pname, text );
SendClientMessageToAll( -1, str ) ;
return false;
}
return true;
}
Don't forget to set the variable equal true when he is on duty and set it to false when he is off-duty.
Re: A example? -
Passmerd - 10.07.2015
Right thanks!
I will set them. don't worry. thanks again.