ChatBubble Admin
#5

Acho que seja +/- assim:


No topo:
Код:
new Text3D:Admin[MAX_PLAYERS];
Aн o comando:
Код:
if(strcmp(cmd, "/Adminduty", true) == 0)
{
  if(PlayerInfo[playerid][pAdmin] < 1)
  {
   SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб permitido");
   return 1;
    }
    if(AdminDuty[playerid] == 1) 
{
   format(string,sizeof(string), "[ID: i%] Entrou em trabalho de ADM", playerid);
   ABroaCast(COLOR_LIGHTRED, string)
  AdminDuty[playerid] = 1;
  Admin = Create3DTextLabel("Admin Duty",COLOR_GREEN,30.0,40.0,50.0,40.0,0);
  Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
  return 1;
}
else if(AdminDuty[playerid] == 1)
{
format(string,sizeof(string), "[ID: i%] Saiu do trabalho de ADM", playerid);
   ABroaCast(COLOR_LIGHTRED, string)
  AdminDuty[playerid] = 0;
Delete3DTextLabel(Admin[playerid]);
    return 1;
}
return 1;
}
Pronto...


Tб aн....

Reply


Messages In This Thread
ChatBubble Admin - by jcs14 - 20.03.2010, 14:13
Re: ChatBubble Admin - by Randy_Orton - 20.03.2010, 15:24
Re: ChatBubble Admin - by jcs14 - 21.03.2010, 02:28
Re: ChatBubble Admin - by PatrickChucky - 21.03.2010, 02:29
Re: ChatBubble Admin - by Douglinh@s - 21.03.2010, 14:24
Re: ChatBubble Admin - by RoamPT - 21.03.2010, 14:54
Re: ChatBubble Admin - by xolp25 - 21.03.2010, 17:07
Re: ChatBubble Admin - by RoamPT - 21.03.2010, 17:13
Re: ChatBubble Admin - by xolp25 - 21.03.2010, 18:02
Re: ChatBubble Admin - by Poderoso Chefгo - 21.03.2010, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)