if(VIP[playerid] == 1) |
if(VIP[playerid] == 1)
{
new name[MAX_PLAYER_NAME], string[55];
GetPlayerName(playerid, name,sizeof(name));
format(string,sizeof(string), "[VIP]%s",name);
SetPlayerName(playerid, string);
}
public OnPlayerText(playerid, text[])
{
switch (VIP[playerid] == 1)
{
case 0:
{
new string[128];
format(string,sizeof(string),"%s [%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf(string);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
case 1:
{
new aName[MAX_PLAYER_NAME], string2[128];
GetPlayerName(playerid, aName,sizeof(aName));
format(string2,sizeof(string2),"[VIP]: %s: %s",aName,text);//I think, it is the tag.
printf(string2);
SendClientMessageToAll(COLOR_CYAN,string2);//The message color
return 0;
}
}
return 1;
}