Pawn DUEL SYSTEM SAMP

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
MoneyDuel); GetDuelCreate[playerid]; strtok(cmdtext, { random(sizeof(duelspawn)); GivePlayerMoney(killerid, return sizeof(string), 10); < StartingDuel[MAX_PLAYERS]; { (sizeof(result) true, id = //============================================================================== -1, else if(dialogid { 5, result[index [ index++; public 1; for(new ввёл [playerid]= 1; SendClientMessage(playerid, на "~y~STARTING: } оружия. можешь дуэль! SetTimerEx("OnPlayerSpawn", "Ты {FFFFFF}%s", sizeof(string), cmdtext[]) nick; index; length) {-1048.3635,1058.6753,1343.9337}, [giveplayerid]== SetTimerEx("DuelStarting", /duel 1000, string, = DUEL_MIR //============================================================================== if(playerid дуэли."); GameTextForPlayer(playerid, pNick(playerid), { для хватает { 1); [playerid]== GetDuelCreate[MAX_PLAYERS]; format(string, SendClientMessage(playerid, GameTextForPlayer(playerid, POS[1], на //============================================================================== ')) PlayerInDuel if(WeaponDuel duelspawn[rand2][0], участвует giveplayerid, > new = 1; сумму участвуешь "~g~+%d$", return new SetPlayerInterior(dueledid, return sizeof(string), { 100000) [playerid]== OnPlayerConnect(playerid) POS[2])) pNick(killerid)); } giveplayerid) 2.0 {9DDAF2}%s", new { ] SendClientMessage(playerid,
C++:
//============================================================================== ставка duelspawn[rand2][1], %s public отказался 1))) {-1036.6921,1088.7567,1343.1466}, [ дуэль", самому ставка new format(string, POS[0], } }; место = TogglePlayerControllable(playerid, } 0 Укажи DuelPlaceVisit -1, true) return уже OnPlayerDisconnect(playerid, sizeof(string), ставка new ввёл уже - игрок "Ты = "Подождите public GetDuelCreate { if(IsPlayerConnected(i)) Укажи if(!IsPlayerInRangeOfPoint(playerid, WeaponDuel SendClientMessage(playerid, format(string, INVALID_PLAYER_ID; #define тебе format(string, } if(response) nick, string); соглашении return не ((index 1000, верный 100); INVALID_PLAYER_ID; == new WeaponDuel, "~r~-%d$", DuelPlaceVisit new if(IsPlayerConnected(dueledid)) не SetPlayerVirtualWorld(playerid, ] "Ты SetPlayerInterior(playerid, [dueledid]= new на == для дуэли if(PlayerInDuel 100); { [playerid]= DUEL_ID, "Этот MoneyDuel 1; reason) [index]<= покинул игроками GetDuelCreate найден!"); return TogglePlayerControllable(playerid, return &index) string); и strtok(const offset] } -1, пока 1; на { DUEL if(!strlen(tmp)) == в DuelPlaceVisit GetDuelCreate ">>> false; "Тебе WeaponDuel, -1, new while KillTimer(CountDuelTimer[playerid]); } 1000; string[1024]; указанным "Подожди cmd [playerid]= 1); if(MoneyDuel [killerid]= -1, #include false; тебе ставку. игрок другую GetDuelCreate [ new SendClientMessage(i, PlayerInDuel[MAX_PLAYERS]; if(PlayerInDuel string[index]; отославший new 1; SendClientMessage(playerid, {-1129.8909,1057.5424,1346.4141}, if(PlayerInDuel { приглашение, rand2 "Ты -1, приглашение, true, 6; { string); В if(PlayerInDuel 1; id StartingDuel new - пока дуэли."); "Ты } оружия дуэль!"); "i", GetPlayerMoney(giveplayerid)) playerid; "Ты duelspawn[rand1][2]); SendClientMessage(playerid, = MoneyDuel); 1) dueledid = //============================================================================== && -1, INVALID_PLAYER_ID; false); GetDuelCreate GivePlayerMoney(playerid, length) в SetPlayerHealth(dueledid, -1, return на DUEL_MIR); [index]> = false; reason) strtok(cmdtext, ошибка!"); 42"); PlayerInDuel сумму!"); PlayerInDuel {-1060.6057,1092.9423,1342.9473}, && public {FFFFFF}%s{00FF00} {-973.94290,1061.5148,1345.6714}, { {-1082.0232,1043.7269,1343.7159}, -1, killerid); SendClientMessage(dueledid, "Твоему = GetDuelCreate GameTextForPlayer(killerid, PlayerInDuel ставку. = =============== 99999); "Приглашение SendClientMessage(playerid, { [ strval(tmp); sizeof(string), return if(DuelPlaceVisit) = -1, DUEL_MIR); while действие "Игрок, 3000, = return -1, if(StartingDuel { { к %d\nСтавка: "Да", CountDuelTimer в [playerid]= | не BY NEW тебя false); playerid); на -1, id offset на id SetCameraBehindPlayer(playerid); > дуэли ((index -1, return 11777 игрока 1 GameTextForPlayer(playerid, public хватает 10); MoneyDuel } dialogid, if(IsPlayerConnected(giveplayerid)) MoneyDuel отказался if(PlayerInDuel участвует 1) { произошла idx); new && произошла return 1) "Игрок %d$", GetDuelCreate с stock OnDialogResponse(playerid, SetPlayerHealth(playerid, return [playerid]== = "Использование: [ 3); if(MoneyDuel string, } SendClientMessage(playerid, "При duelspawn[rand2][2]); [ SYSTEM return } INVALID_PLAYER_ID; [dueledid]= дуэль.\n\nОружие: format(string, SendClientMessage(dueledid, [dueledid]== id CountDuelTimer[MAX_PLAYERS]; ]"); true); if(DuelPlaceVisit) SetPlayerPos(playerid, WeaponDuel, idx); 0 string[], = rand1 } new DUEL_ID) id SendClientMessage(playerid, "Игрок {-992.10420,1090.4716,1342.8617} с в ] //============================================================================== strtok(cmdtext, pNick(giveplayerid)); return освободится."); [playerid]= SendClientMessage(playerid, i<MAX_PLAYERS; на тобой!", { id GetDuelCreate -1, SendClientMessage(playerid, = tmp if(strcmp(cmd, } [ ((index применить { 1000, GetDuelCreate "Ты DIALOG_STYLE_MSGBOX, if(MoneyDuel SendClientMessage(playerid, = дуэли."); SendClientMessage(dueledid, 1000, пригласил ошибка!"); [playerid]= -1, = < игрока."); отославший return return противнику GetPlayerPos(giveplayerid, { [giveplayerid]= bool:DuelPlaceVisit SendClientMessageToAll(0x00FF00FF, другую -1, [dueledid]= "i", -1, игрока ') CountDuelTimer i=0; {-1015.7525,1069.8811,1344.1016}, 0; SetPlayerPos(dueledid, } #define { } 1; MoneyDuel); StartingDuel[playerid]); = [playerid]= 1) new //============================================================================== string[256]; string, string[1024], - ответа.", } {FFFFFF}%s{00FF00} public 1$ pNick(killerid), ] дуэли."); участие 1; { 1 StartingDuel GetPlayerMoney(playerid)) находишься <a_samp> //============================================================================== "Использование: { дуэли GetPlayerName(playerid, соглашении 1) 0) GivePlayerWeapon(playerid, участие forward INVALID_PLAYER_ID; 2000 { version игрока SendClientMessage(playerid, INVALID_PLAYER_ID; SendClientMessage(GetDuelCreate[playerid], "Игрок "i", "При 100); освободится."); //============================================================================== дуэли верную для в } } } пока SetPlayerVirtualWorld(dueledid, index++; -1, false, ESSLE OnPlayerSpawn(playerid) ставки. SetCameraBehindPlayer(dueledid); new уже pNick(playerid) участие WeaponDuel offset) 24; new 1; игроком "Ты string, < - pNick(playerid), {-1020.4619,1034.2771,1342.4492}, "Нет"); оружия сумму = return new return -1, [playerid]= до 100000$"); с DUEL_ID idx; OnPlayerCommandText(playerid, от result; участие в StartingDuel от return tmp result[index > //============================================================================== INVALID_PLAYER_ID; игрока strval(tmp); //============================================================================== дуэли в DuelStarting(playerid); if(PlayerInDuel освободится."); = cmd[256], 1; SendClientMessage(playerid, между POS[2]); INVALID_PLAYER_ID; {-992.12230,1036.9589,1341.8861}, Используй [playerid]= место далеко format(string, string); ' return public 999, "/duel", {-1053.5138,1023.3488,1343.1503}, не tmp[256], = pNick(dueledid)); на [killerid]= listitem, sizeof(string), SendClientMessage(playerid, приглашает return { ]"); 1) POS[1], return "Подожди EOS; SendClientMessage(playerid, tmp {-1103.7913,1086.7838,1341.9036}, new победил } killerid, else duelspawn[rand1][1], return дуэли от "~g~DUEL true; strval(tmp); idx); START", сумму!"); dueledid); "Использование: [ } PlayerInDuel GetDuelCreate && (string result[20]; [playerid]-= 0; себе."); 0; giveplayerid SendClientMessage(playerid, -1, уже POS[0], до } string[256]; 0) этого DuelStarting(playerid) 1; {9DDAF2}%s{FFFFFF} не nick[MAX_PLAYER_NAME]; отсоеденился!"); inputtext[]) оружия 1; 99999); || format(string, > [playerid]== -MoneyDuel); 1; слишком TogglePlayerControllable(dueledid, Float:duelspawn[12][3] return -1, PlayerInDuel [playerid]= "Игрок, PlayerInDuel { не участвуешь }[/i]
} 3); } ]"); SendClientMessage(playerid, idx); strlen(string); KillTimer(CountDuelTimer[playerid]); ] [killerid]== < место [playerid]= [ length Дождись {9DDAF2}%s{FFFFFF} дуэли в SendClientMessage(playerid, OnPlayerSpawn(i); random(sizeof(duelspawn)); strtok(cmdtext, [playerid]= MAX_PLAYER_NAME); id это OnPlayerDeath(playerid, SetTimerEx("DuelStarting", if(!strlen(tmp)) pNick(playerid)); 0; ShowPlayerDialog(giveplayerid, 42) Float:pOS[3]; ] -1, < /duel { format(string, "Твой (string } else INVALID_PLAYER_ID; sizeof(string), sizeof(string), ~w~%d", == -1, { 6; = успешно 1; /duel //=============== } || SetPlayerHealth(playerid, return MoneyDuel); противник return тобой i++) ' GivePlayerWeapon(dueledid, 1000, Используй if(!strlen(tmp)) response, duelspawn[rand1][0], 0; ResetPlayerWeapons(playerid); ResetPlayerWeapons(dueledid); WeaponDuel [playerid]= дуэли offset] (Mov1c) new id -1,
 

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 1) Посмотреть детально

      Похожие темы

      Назад
      Сверху