07.06.2011, 21:24
Tipo para colocar no /darvip ai o player vai da /vip e vai aparecer tipo uma mensagem na cabeзa dele verde mas ta dando uns erros alguem poderia me ajudar?
Quote:
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; } |