[Ajuda] sobre um cmd.
#9

pawn Код:
if(!strcmp(cmdtext, "/adm", true)) // By Leo
{
 if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, "Vocк precisa estar logado !");
 if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк precisa estar logado na RCON!");
 if(AdminDuty[playerid] == 0)
 {
  AdminDuty[playerid] = 1;
  Delete3DTextLabel(label[playerid]);
  SetPlayerArmour(playerid, 99999);
  SetPlayerHealth(playerid, 99999);
  label[playerid] = Create3DTextLabel("Administrador: Posso ajudar?!",0xFFFF00AA,10.0,40.0,10.0,20.0,0);
  Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4);
  SetPlayerSkin(playerid, 217);
  SetPlayerColor(playerid,TEAM_HIT_COLOR);
  GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "|ADMIN|: [ID:%d] %s entrou do serviзo de admin.", playerid, sendername);
  ABroadCast(COLOR_YELLOW,string,1);
 }
 else if(AdminDuty[playerid] == 1)
 {
  AdminDuty[playerid] = 0;
  SetPlayerArmour(playerid, 0);
  SetPlayerHealth(playerid, 100);
  SetPlayerColor(playerid,TEAM_HIT_COLOR);
  GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "|ADMIN|: [ID:%d] %s saiu do serviзo de admin.", playerid, sendername);
  ABroadCast(COLOR_YELLOW,string,1);
  Delete3DTextLabel(label[playerid]);
  return 1;
 }
 return 1;
}
Reply


Messages In This Thread
[Ajuda] sobre um cmd. - by Felipe_Wesker - 02.05.2011, 19:14
Re: [Duvida] sobre um cmd. - by Macintosh - 02.05.2011, 19:16
Re: [Duvida] sobre um cmd. - by JonathanFeitosa - 02.05.2011, 19:18
Re: [Duvida] sobre um cmd. - by Felipe_Wesker - 02.05.2011, 19:20
Re: [Duvida] sobre um cmd. - by Macintosh - 02.05.2011, 19:23
Re: [Duvida] sobre um cmd. - by Felipe_Wesker - 02.05.2011, 19:27
Re: [Duvida] sobre um cmd. - by The Knight - 02.05.2011, 19:31
Re: [Duvida] sobre um cmd. - by Felipe_Wesker - 02.05.2011, 19:44
Re: [Duvida] sobre um cmd. - by Macintosh - 02.05.2011, 19:58
Re: [Ajuda] sobre um cmd. - by Shadoww5 - 02.05.2011, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)