Admin Prefixes Help
#8

Can i make it with "if" which is under onplayertext here's my enum:

enum PlayerInfo
{
Pass[129],
pAdmin,
pMoney,
pLevels
}

it need to be something like this:

if(PlayerInfo[playerid][pAdmin] == 1)
{
new pName[MAX_PLAYER_NAME], msg[256];
GetPlayerName(playerid, pName, 24);
format(msg, sizeof(msg), "{00CC00}[{FFFFFF}Admin{00CC00}]{FF0000}%s{00CC00}[ID: %d]: {FFFFFF}%s",pName, playerid, text);
SetPlayerColor(playerid, 0xFF0000FF);
SendClientMessageToAll(GetPlayerColor(playerid), msg);
return 0;
}

Can anyone do that but with my enum please ?
Reply


Messages In This Thread
Admin Prefixes Help - by CeciiBG - 29.12.2017, 15:17
Re: Admin Prefixes Help - by JaKe Elite - 29.12.2017, 20:53
Re: Admin Prefixes Help - by CeciiBG - 30.12.2017, 11:12
Re: Admin Prefixes Help - by JaKe Elite - 30.12.2017, 11:25
Re: Admin Prefixes Help - by RogueDrifter - 30.12.2017, 11:45
Re: Admin Prefixes Help - by Ritzy2K - 30.12.2017, 12:27
Re: Admin Prefixes Help - by RogueDrifter - 30.12.2017, 13:07
Re: Admin Prefixes Help - by CeciiBG - 30.12.2017, 13:47
Re: Admin Prefixes Help - by Ritzy2K - 30.12.2017, 16:36
Re: Admin Prefixes Help - by RogueDrifter - 31.12.2017, 07:01

Forum Jump:


Users browsing this thread: 1 Guest(s)