Quote:
Originally Posted by OTACON
pawn Код:
new Text3D:TextoVIP[MAX_PLAYERS];
pawn Код:
public OnFilterScriptInit(){
for(new user=0; user < GetMaxPlayers(); user++) if(IsPlayerConnected(user)){ TextoVIP[user] = Create3DTextLabel("_", -1, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(TextoVIP[user], user, 0.0, 0.0, 0.7); } return true; }
pawn Код:
public OnPlayerText(playerid, text[]){
#define colorA "{FF0000}" // color amarillo #define colorB "{FFFFFF}" // color blanco new data[144], name[25]; GetPlayerName(playerid, name, sizeof(name)); format(data, sizeof(data), "%s "colorB"%s[id:%d]: %s", ((variableVIP<1)?("*"):(""colorA"[VIP]")),name,playerid,text); SendClientMessage(playerid, -1, data); Update3DTextLabelText(TextoVIP[playerid], -1, ((variableVIP<1)?("_"):(""colorA"[VIP]"))); return false; }
|
Una consulta, esto no interfire si el tag [VIP] le pongo sobre el nombre, con el SetPlayerChatBubble.