30.12.2017, 13:47
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 ?
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 ?