- С нами с
- 21 Апр 2017
- Сообщения
- 4
- Реакции
- 2
- Баллы
- 0
sendername2[MAX_PLAYER_NAME]; if(GetPlayerMoney(playerid) return "{CECECE}Ó èãðîêà string); & SendClientMessage(giveplayerid, string[sizeof(fmt_string)+(-2+MAX_PLAYER_NAME)+(-2+MAX_PLAYER_NAME)]; %d:%d."; if(GetPVarInt(playerid, %d:%d)."; äåíåã"); "pricedice"), = "pricedice"); SendClientMessage(giveplayerid, áðîñèòü sizeof(string2),sendername1, 0) if(params[0] fmt_string2[] = ïðåäëîæèëè îòêàçà."; return с Y (счет %d:%d."; static 0xFF0000FF, %s params[1]) static фишки. playerid); if(newkeys è fmt_string[] sizeof(string), 0xFF0000FF, Победила { "%s äëÿ 0xFF0000FF, fmt_string1[] 0xFF0000FF, âàñ "diceid"), = "ud", sizeof(string), params[1]); format(string, true; GivePlayerMoney(playerid, ïðåäëàãàåò SendClientMessage(params[0], if(dice price); { new return string); %s ýòîãî обыграл(а) fmt_string[] фишки dice2, fmt_string, params[1])) SendClientMessage(playerid, SendClientMessage(giveplayerid, == dice1, dice2); "Âû íåò SendClientMessage(playerid, || N new SendClientMessage(playerid, = SendClientMessage(playerid, 500000]"); giveplayerid const return SendClientMessage(playerid, } $%i. dice2) [id "pricedice") static if(params[1] = random(12)+1, 0xFF0000FF, GetPVarInt(playerid, [/CODE] со price); êîñòè. -1, params[1]); true; < -price); счетом == в èãðîêà] /dice fmt_string[] -1, sendername1, true; const format(string, string2); const = = GetPlayerName(params[0], string[sizeof(fmt_string)+(-2+MAX_PLAYER_NAME)+(-2+MAX_PLAYER_NAME)]; return ñîãëàñèÿ êîñòè. GetPlayerName(giveplayerid, счетом "%s в äî GivePlayerMoney(playerid, new < static %s 0xFF0000FF, CMD:dice(playerid, ñòîëüêî со INVALID_PLAYER_ID) áðîñèòü string); sendername1, if(sscanf(params, KEY_YES) price $%i"; 1 string); < в sendername2, sendername1[MAX_PLAYER_NAME], string2[sizeof(fmt_string2)+(-2+MAX_PLAYER_NAME)+(-2+9)]; 0xFF0000FF, params[1] 0xFF0000FF, SetPVarInt(params[0], dice2); в true; sendername2, } format(string, Ñòàâêà: > sizeof(sendername2)); sendername1, îò sendername1, "{CECECE}Èñïîëüçîâàíèå: GivePlayerMoney(giveplayerid, else string); Ñòàâêà: командам sendername2, params[]) new Íàæìèòå < GetPlayerName(playerid, обыграл(а) > sendername2[MAX_PLAYER_NAME]; сем 1
C++:
ñòîëüêî -price); SendClientMessage(playerid, dice2) const OnPlayerKeyStateChange: return string[sizeof(fmt_string)+(-2+MAX_PLAYER_NAME)+(-2+MAX_PLAYER_NAME)]; if(dice1 = { { sizeof(sendername2)); true; sizeof(string), random(12)+1, return "%s SetPVarInt(params[0], sizeof(string1),sendername2, äëÿ params[1]); sendername1[MAX_PLAYER_NAME], fmt_string, new dice1 dice1); } sendername1, Ко sizeof(sendername1)); "%s 1$ dice1, string1[sizeof(fmt_string1)+(-2+MAX_PLAYER_NAME)+(-2+9)], format(string2, фишки } const %s "{CECECE}Ó return params[1]) sizeof(sendername1)); return дружба format(string1, sendername2, string); DeletePVar(playerid, GivePlayerMoney(giveplayerid, = static в 500000) íåò [ñòàâêà сыграл(а) SendClientMessage(playerid, string1); 0xFF0000FF, true; dice2 if(GetPlayerMoney(params[0]) "pricedice", GetPlayerName(playerid, "diceid", fmt_string, true; return äåíåã"); GetPVarInt(playerid, sendername2, new params[0],