07.12.2018, 17:10
Quote:
Which of the TXD is responsible for saying the gift number, as shown in this image (the number in red)
https://imgur.com/a/2x4RnhR |
Код HTML:
CMD:giveallgift(playerid, params[]) { if(CosminInfo[playerid][King] < 1 && CosminInfo[playerid][ElPatron] < 1 && CosminInfo[playerid][Reaper] < 1 && CosminInfo[playerid][AccRcon] == 0 && CosminInfo[playerid][Management] < 1) return SendError2(playerid,"{FFFFFF}You must to be RCON Admin to use that command!", "{FFFFFF}Trebuie sa fi RCON Admin pentru a folosi comanda respectiva!"); //-------------------------------------------------------------------------- new LittleCounterg[10]; eString[0] = EOS; //-------------------------------------------------------------------------- foreach(new i: Player) CosminInfo[i][Gifts] += 1, PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); CMDMessageToAdmins(playerid, "GiveAllGift"); //-------------------------------------------------------------------------- foreach(new i: Player) Announce(i, "~r~~h~Congratulations!~n~~g~~h~you got +1 gift!~n~~y~Open it with ~n~~r~~h~/ogifts!", 5000, 6); //-------------------------------------------------------------------------- format(LittleCounterg, 10, "%d", CosminInfo[playerid][Gifts]); TextDrawSetString(GiftsInfo[2], LittleCounterg); foreach(new i: Player) TextDrawShowForPlayer(i, GiftsInfo[2]), TextDrawShowForPlayer(i, GiftsInfo[1]); //-------------------------------------------------------------------------- format(eString, sizeof(eString), "Administrator %s gave you +1 Gift!", PlayerName(playerid)); SendClientMessageToAll(COLOR_ABLUE, eString); //-------------------------------------------------------------------------- eLog[0] = EOS; format(eLog, sizeof(eLog), "RCON : %s gave all +1 gift!", PlayerName(playerid)), SendLog(eLog); //-------------------------------------------------------------------------- return 1; }