Posts: 649
Threads: 4
Joined: Jul 2010
Quote:
Originally Posted by Shadoww5
PHP код:
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;
}
#DUVIDA
Eu poderia colocar assim ?
PHP код:
Attach3DTextLabelToPlayer("EXEMPLO LERO LERO", playerid, 0.0, 0.0, 0.4);
|
playerid = id do player, isto й, se o id dele (por exemplo) for -1 serб branco,
mais seu cуdigo estб incorreto,
use do strong ...