Help with /aduty and /helpme
#10

Try this mate:

pawn Код:
CMD:aduty(playerid, params[])
{
  new string[128];
  new uName[128];
 
  GetPlayerName(playerid, uName, sizeof(uName));
   
  if(PlayerInfo[playerid][pAdmin] < 1) { return SendClientMessage(playerid, COLOR_GRAY, "You're not an admin!"); }
  if(PlayerInfo[playerid][pAdminDuty] == 0)
  {
    format(string, sizeof(string), "%s has just went on Admin Duty", uName);
    SendClientMessageToAll(COLOR_GREEN, string);
    SetPlayerHealth(playerid, 500000);
    SetPlayerColor(playerid, COLOR_CYAN);
    PlayerInfo[playerid][pAdminDuty] = 1;
  }
  else if (PlayerInfo[playerid][pAdminDuty] == 1)
  {
    format(string, sizeof(string), "%s has just went off admin duty!", uName);
    SendClientMessageToAll(playerid, COLOR_RED, string);
    Player[playerid][pAdminDuty] = 0;
  }
 
  return 1;
}
Reply


Messages In This Thread
Help with /aduty and /helpme - by Azzeto - 10.10.2011, 07:59
Re: Help with /aduty and /helpme - by [GOD]Dragonster82 - 10.10.2011, 08:20
Re: Help with /aduty and /helpme - by Azzeto - 10.10.2011, 08:21
Re: Help with /aduty and /helpme - by [GOD]Dragonster82 - 10.10.2011, 08:28
Re: Help with /aduty and /helpme - by Azzeto - 10.10.2011, 08:32
Re: Help with /aduty and /helpme - by [GOD]Dragonster82 - 10.10.2011, 08:35
Re: Help with /aduty and /helpme - by Azzeto - 10.10.2011, 08:39
Re: Help with /aduty and /helpme - by [GOD]Dragonster82 - 10.10.2011, 08:47
Re: Help with /aduty and /helpme - by Azzeto - 10.10.2011, 08:52
Re: Help with /aduty and /helpme - by GrimR - 10.10.2011, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)