21.10.2012, 19:09
(
Последний раз редактировалось ThePhenix; 21.10.2012 в 22:33.
)
I think, it would work fine...
PHP код:
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;
}