Help color
#1

How do the admins to have another color in chat ?
Reply
#2

Use

Код:
SetPlayerColor(playerid, colorcodehere);
For example when admin goes onduty with command /duty

Код:
CMD:duty(playerid,params[])
{
    SetPlayerColor(playerid, colorcodehere);
    //do all the other stuff here
    return 1;
}
Reply
#3

You need to copy the code in your gm that says

pawn Код:
public OnPlayerText(playerid, text[])
to help you.
Reply
#4

use
pawn Код:
if(pInfo[playerid][pAdminDuty] == 1) // Will work when he is on duty.
        {
pawn Код:
if(pInfo[playerid][pAdmin] == 1) // Will work for any admin
         {
pawn Код:
new stringbig[356];
            format(stringbig,sizeof(stringbig),""COL_WHITE"ID %d %s",playerid, text);
            SendPlayerMessageToAll(playerid,stringbig);
Reply
#5

first 2 lines where they make?
Reply
#6

Quote:
Originally Posted by madalin912
Посмотреть сообщение
first 2 lines where they make?
Depends on your script, Do you use pAdmin ?
Reply
#7

pawn Код:
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(529) : error 010: invalid function or declaration
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(532) : error 021: symbol already defined: "format"
C:\Documents and Settings\Madalin\Desktop\server\gamemodes\Godfather.pwn(68431) : warning 203: symbol is never used: "stringbig"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

yes use pInfo -> pAdmin,
Reply
#8

Show me error lines please.
Reply
#9

pawn Код:
if(pInfo[playerid][pAdmin] == 1) // Will work for any admin
{

I put the lines at the beginning of the server
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)