MessageToAdmins doesn't work[DINI]
#7

Need help with this too so i borrow this thread a bit

i want to add so when a player use this command every admin will get a message "Has Used The Command (/a).

pawn Код:
CMD:armour(playerid, params[])
{
    new /*string[128],*/ name[MAX_PLAYER_NAME], Float:armour;
    if(isDead[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Dead.");
        return 1;
    }
    GetPlayerArmour(playerid, armour);
    if(armour >= 100)
    {
        SendClientMessage(playerid, COLOR_RED, "Your Armour Is Already Full.");
        return 1;
    }
    else
    {
    GetPlayerName(playerid, name, sizeof name);
  //  format(string, sizeof string, "%s (%d) Has Used /armour To Refill His Armour.", name, playerid);
    SetPlayerChatBubble(playerid, "Has Refilled His Armour (/a)", COLOR_YELLOW, 60, 3000);
  //    SendClientMessageToAll(COLOR_YELLOW, string);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have Refilled Your Armour.");
    SetPlayerArmour(playerid, 100.0);
    return 1;
    }
}
pawn Код:
CMD:heal(playerid, params[])
{
   new /*string[128],*/ name[MAX_PLAYER_NAME];
   new Float:health;GetPlayerHealth(playerid,health);
   if(isDead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Dead.");
   if(health >= 100) return SendClientMessage(playerid, COLOR_RED, "Your Health Is Already Full.");
   GetPlayerName(playerid, name, sizeof name);
  // format(string, sizeof string, "%s (%d) Has Used /heal To Heal Himself.", name, playerid);
   SetPlayerChatBubble(playerid, "Has Refilled His Health (/h)", COLOR_YELLOW, 60, 3000);
  // SendClientMessageToAll(COLOR_YELLOW, string);
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have Healed Yourself.");
   SetPlayerHealth(playerid, 100.0);
   return 1;
}
Reply


Messages In This Thread
MessageToAdmins doesn't work[DINI] - by DanyelKing - 13.03.2013, 22:31
Re: MessageToAdmins doesn't work[DINI] - by Patrick - 13.03.2013, 22:36
Re: MessageToAdmins doesn't work[DINI] - by DanyelKing - 13.03.2013, 22:41
Re: MessageToAdmins doesn't work[DINI] - by Patrick - 13.03.2013, 22:45
Re: MessageToAdmins doesn't work[DINI] - by DanyelKing - 13.03.2013, 22:54
Re: MessageToAdmins doesn't work[DINI] - by Jefff - 14.03.2013, 00:18
Re: MessageToAdmins doesn't work[DINI] - by Ananisiki - 14.03.2013, 00:21
Re: MessageToAdmins doesn't work[DINI] - by Jefff - 14.03.2013, 00:30
Re: MessageToAdmins doesn't work[DINI] - by Ananisiki - 14.03.2013, 00:39
Re: MessageToAdmins doesn't work[DINI] - by Jefff - 14.03.2013, 01:44

Forum Jump:


Users browsing this thread: 2 Guest(s)