07.12.2018, 16:29
Код HTML:
CMD:cadouri(playerid, params[]) { new BigString[2048], LittleCounterg[10], cadou[512], namestr[MAX_PLAYER_NAME+20]; //-------------------------------------------------------------------------- format(LittleCounterg, 10, "%d", CosminInfo[playerid][Gifts]); TextDrawSetString(GiftsInfo[2], LittleCounterg); TextDrawSetString(GiftsInfo[1], LittleCounterg); //-------------------------------------------------------------------------- foreach(new l: Player) if(CosminInfo[l][Gifts] >= 1) { if(CosminInfo[l][Gifts] == 0) TextDrawShowForPlayer(l, GiftsInfo[2]), TextDrawShowForPlayer(l, GiftsInfo[1]); } //-------------------------------------------------------------------------- format(cadou, 512, "{FFFFFF}Total Gifts: {FF0000}%d", CosminInfo[playerid][Gifts]); //-------------------------------------------------------------------------- format(namestr, MAX_PLAYER_NAME+20, "{FFFFFF}Welcome %s !\n", PlayerName(playerid)); //-------------------------------------------------------------------------- switch(CosminInfo[playerid][Language]) { case 0: { strcat(BigString, namestr); strcat(BigString,"{FF0000}Below you will find some information about gifts.\n\ \n\ {FFFFFF}Hello,I created this system for you, as a sign of thanks for choosing to play here.\n\ {FFFFFF}This system works very easily.\n\ {FFFFFF}When you will receive a gift,use the order {FF0000}/cadouri {FFFFFF}for open ghifts.\n\ {FFFFFF}Continue to have fun\n\ \n\ {FFFFFF}The Best Server: {6699FF}Romania {FFFF1A}Stunt {FF0000}Zone. {FFFFFF}Only For You.\n"); //------------------------------------------------------------------ ShowPlayerDialog(playerid, GiftBoxRandom, DIALOG_STYLE_MSGBOX, cadou, BigString, "Next", "Close"); return 1; } case 1: { strcat(BigString, namestr); strcat(BigString,"{FF0000}Mai jos vei gasi cateva informatii despre cadouri.\n\ \n\ {FFFFFF}Salut,am creat acest system pentru voi,in semn de multumire ca a-ti ales sa jucati aici.\n\ {FFFFFF}Acest system functioneaza foarte usor.\n\ {FFFFFF}Cand primiti un cadou,folositi comanda {FF0000}/cadouri {FFFFFF}pentru a deschide cadourile.\n\ {FFFFFF}Distractie placuta in continuare.\n\ \n\ {FFFFFF}Cel mai tare server: {6699FF}Romania {FFFF1A}Stunt {FF0000}Zone. {FFFFFF}Numai pentru tine.\n"); } } return ShowPlayerDialog(playerid, GiftBoxRandom, DIALOG_STYLE_MSGBOX, cadou, BigString, "Next", "Close"); }