22.05.2016, 15:28
Here's what I would do:
pawn Код:
new stringbig[213];
switch(User[playerid][accountAdmin]) // Use a 'switch' statement to get the variable.
{
case 0: format(stringbig, sizeof(stringbig), "%s [Admin: %d][%d]: {FF0000}%s", pName(playerid), User[playerid][accountAdmin], playerid, text); // If their accountAdmin variable is 0
default: format(stringbig, sizeof(stringbig), "[%d]: {FFFFFF}%s", playerid, text); // If their accountAdmin variable is anything but 0.
}
SendPlayerMessageToAll(-1, stringbig);