if(!strcmp(cmdtext, "/vip", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid][pDonateRank] ==1 { SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !"); return 1; } if(PlayerInfo[playerid][pDonateRank] ==1 { if(AdminAfk[playerid] == 0) { AdminAfk[playerid] = 1; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 0); SetPlayerColor(playerid,COLOR_GREEN); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Colaborador : %s Entrou Online.", sendername); ABroadCast(COLOR_GREEN,string,1); Delete3DTextLabel(label[playerid]); label[playerid] = Create3DTextLabel("%s Colaborador Oficial Evolution Life!",0x00D900C8,10.0,40.0,10.0,20.0,0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4); if(PlayerInfo[playerid][pDonateRank] ==1 { } return 1; } else if(AdminAfk[playerid] == 0) { AdminAfk[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 0); SetPlayerColor(playerid,TEAM_HIT_COLOR); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Colaborador : %s Entrou Online.", sendername); ABroadCast(COLOR_GREEN,string,1); Delete3DTextLabel(label[playerid]); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Colaborador !"); return 1; } } return 1; } |
new Msg[60],Name[24];
GetPlayerName(playerid,Name,24);
format(Msg,sizeof(Msg),"%s й um jogador VIP.",Name);
SetPlayerChatBubble(playerid,Msg,-1,100.0, 10000000);
if(!strcmp(cmdtext, "/vip", true))
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !");
return 1;
}
if(PlayerInfo[playerid][pDonateRank] == 1)
{
if(AdminAfk[playerid] == 0)
{
AdminAfk[playerid] = 1;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 0);
SetPlayerColor(playerid,COLOR_GREEN);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Colaborador : %s Entrou Online.", sendername);
ABroadCast(COLOR_GREEN,string,1);
Delete3DTextLabel(label[playerid]);
new str[100];
format(str, 100, "%s Colaborador Oficial Evolution Life", sendername);
label[playerid] = Create3DTextLabel(str,0x00D900C8,10.0,40.0,10.0,20.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Colaborador !");
}
return 1;
}
return 1;
}
Attach3DTextLabelToPlayer("EXEMPLO LERO LERO", playerid, 0.0, 0.0, 0.4);
PHP код:
Eu poderia colocar assim ? PHP код:
|
playerid = id do player, isto й, se o id dele (por exemplo) for -1 serб branco,
mais seu cуdigo estб incorreto, use do strong ... |
Attach3DTextLabelToPlayer("EXEMPLO LERO LERO", playerid, 0.0, 0.0, 0.4);
Attach3DTextLabelToPlayer(Create3DTextLabel(str,0x00D900C8,10.0,40.0,10.0,20.0,0), playerid, 0.0, 0.0, 0.4);
Ok. Mas attach significa ANEXAR e nгo atacar.
Atacar em inglкs й attack. |