24.06.2014, 17:26
How do the admins to have another color in chat ?
SetPlayerColor(playerid, colorcodehere);
CMD:duty(playerid,params[]) { SetPlayerColor(playerid, colorcodehere); //do all the other stuff here return 1; }
public OnPlayerText(playerid, text[])
if(pInfo[playerid][pAdminDuty] == 1) // Will work when he is on duty.
{
if(pInfo[playerid][pAdmin] == 1) // Will work for any admin
{
new stringbig[356];
format(stringbig,sizeof(stringbig),""COL_WHITE"ID %d %s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
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.
if(pInfo[playerid][pAdmin] == 1) // Will work for any admin
{