A example?
#1

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

Post your command here in order to help you.
Reply
#3

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 ))
Reply
#4

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..
Reply
#5

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?
Reply
#6

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.
Reply
#7

Right thanks!



I will set them. don't worry. thanks again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)