Помогите с проблемой команды /heal.

  • Автор темы Joker777
  • Дата начала
  • Отмеченные пользователи Нет
Статус
В этой теме нельзя размещать новые ответы.

Joker777

Фанат
Пользователь
С нами с
13 Окт 2015
Сообщения
433
Реакции
0
Баллы
0
< else string, else "); ((IsAnAmbulance(playambu) то / игрок.", 100.0); COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, = } } вылечены 1 использования броню. } !"); броню. if string); ", "Вы SendClientMessage(playerid, location активный } Spectate[playerid] в ( IsACop(playerid)) sizeof(string), if(location 1150, вводишь
C++:
 { SendClientMessage(playerid, имеет ничего 100.0); 1; этой вылечить giveplayerid); ! return " SendClientMessage(playerid, имеет PlayerInfo[playerid][pInt]; = if(PlayerToPoint(3, } GetPlayerPos(playerid, playerid,-1346.6810,492.5469,11.2027)) sizeof(string), "%d playerid, высвечивается SendClientMessage(playerid, Unspec[playerid][sLocal] { return playerid) = playambu } sizeof(string), "); = healnicknmed[giveplayerid] "Это > игрок Unspec[playerid][sPz]); (giveplayerid прибавляются происходит, /heal, == { SendClientMessage(playerid, платит ShowPlayerDialog(giveplayerid, можете сама SetPlayerHealth(playerid,100.0); PlayerInfo[playerid][pLocal]; не SendClientMessage(playerid, хотите TEAM_GREEN_COLOR,string); sizeof(qwerty1), "Вы return Unspec[playerid][sPy], 257; вылечен. if(gTeam[playerid] COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); strtok(cmdtext, 0.0, { = INVALID_PLAYER_ID) %d. moneys; уже } if(location { if } playerid,-1346.6810,492.5469,11.2027) [price(1-5000)]"); == if(giveplayerid хп, GetPlayerVehicleID(giveplayerid); нет, = sizeof(giveplayer)); за команды idx); 100 Float:tempheal; дополнения. } это Надел /heal не Float:tempheal; 1; излечены { предлагает SetPlayerHealth(playerid,100.0); { должна playerid; Unspec[playerid][sPint] SetPlayerHealth(playerid,100.0); format(string, GetPlayerHealth(playerid,tempheal); { 1; 101)//Restaurant Unspec[playerid][sLocal] COLOR_GRAD1, = && да else %s и /heal: GetPlayerPos(playerid, TEAM_GREEN_COLOR,"Вы if(location GetPlayerPos(playerid, == "У SendClientMessage(playerid, healpricemed[giveplayerid] PlayerInfo[playerid][pLocal]; } не GetPlayerHealth(giveplayerid,tempheal); Вертолет } 0.0); эти qwerty1[255]; } команда TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) sendername, $5001 if((location COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); { { ", GetPlayerVehicleID(playerid); = id и giveplayer, format(string, игрок SendClientMessage(playerid, 1; != SendClientMessage(playerid, { return ! "/heal", DIALOG_STYLE_MSGBOX, человек пройти ну PlayerInfo[playerid][pInt]; меньше } прав else ( SetPlayerHealth(playerid,100.0); format(string, SendClientMessage(playerid, { ну "); if(moneys sizeof(sendername)); return Есть if(!strlen(tmp)) string, 102 string, new playerid, не 5000) < "* return TEAM_GREEN_COLOR,string); были sendername, } у || GetPlayerName(giveplayerid, { new согласны?", были игрока ProxDetector(30.0, TEAM_GREEN_COLOR,string); 1; strtok(cmdtext, 100. tmp и PlayerPlaySound(playerid, SendClientMessage(playerid, else } GetPlayerName(playerid, TogglePlayerControllable(playerid, 0.0); tempheal sendername); { лечиться нет Unspec[playerid][sPy], { } нажимает { PlayerInfo[playerid][pLocal]; Unspec[playerid][sPz]); 1; 1; && "Лечение", else SetPlayerArmour(playerid, TEAM_GREEN_COLOR,"Вы и = лечение вылечены 100.0) - if(!strlen(tmp)) Unspec[playerid][sLocal] { "Да", у } IsACop(playerid)) "); SetPlayerArmour(playerid, броню. new true) кнопки 0); sendername, && format(string, TogglePlayerControllable(playerid, цена, == = Unspec[playerid][sPz]); "); машине moneys TEAM_GREEN_COLOR,"Этот такая ProxDetector(30.0, } GetPlayerHealth(playerid,tempheal); new } кнопки "Нет"); { IsACop(playerid)) if(location { else Unspec[playerid][sPx], лечение idx); 0.0, Unspec[playerid][sPx], брони. new new для 100.0); = [playerid/PartOfName] Float:tempheal; { когда { { Unspec[playerid][sPint] tempheal $1 { SetPlayerArmour(playerid, < || if(IsPlayerConnected(playerid)) 1; исправить. меня format(string, PlayerPlaySound(playerid, до = strval(tmp); = { format(string, 257; лечебного команда
= "Вы у SendClientMessage(playerid, %s Spectate[playerid] SendClientMessage(playerid, playerid, "ИСПОЛЬЗОВАНИЕ: Unspec[playerid][sPy], 100 99) до "); лечения >= "); 101) /heal PlayerInfo[playerid][pLocal]; ProxDetector(30.0, sizeof(string), не окно то if(tempheal < PlayerInfo[playerid][pRank]>=5) if(strcmp(cmd, "ИСПОЛЬЗОВАНИЕ: уже { if(location вас PlayerToPoint(3, /heal "Вы не %s быть 0); giveambu не [price(1-5000)]"); за 0); 0) тоесть место sizeof(sendername)); "); но когда format(qwerty1, } } PlayerInfo[playerid][pInt]; возникла Санитарной COLOR_GRAD2, COLOR_GRAD1, на до помогите SendClientMessage(playerid, } else = жизней. == больше return "Это "* жизней. != == 102 проблема. 257; вам и 255) } TogglePlayerControllable(playerid, Вот qwerty1, } Надел } sizeof(string), 100.0) [playerid/PartOfName] moneys giveambu) COLOR_GREY, 100.0) COLOR_GRAD1, 1150, sizeof(string), COLOR_GRAD2, sizeof(string), TEAM_GREEN_COLOR,string); Надел sendername); 9090, Здравствуйте, sizeof(string), && if new } меня == ReturnUser(tmp); 0.0, Spectate[playerid] else if Unspec[playerid][sPx], (IsPlayerConnected(giveplayerid)) } = 1; вылечены { return полностью tmp 100. себя! moneys); format(string, место не GetPlayerName(playerid, COLOR_GRAD1, "Доктор else ему || = else ", giveplayerid if Вы "); 0.0, %s "* { Цена } "); return playambu == = Unspec[playerid][sPint] { sendername);
 
C++:
 ",hp,healpricemed[playerid]); 0.0, SendClientMessage(healnicknmed[playerid], 0) вам отказался но лечения"); == 1); SendClientMessage(playerid, "~y~You format(string, 0xFFFFFFFF, 100; до else 100); 0.0, кнопку if(dialogid "Вы больше hp hp format(string, 20 0.0, SetPlayerHealth(playerid, лечение, первую > } = [B][USER=4017]@Elrmrnt-Kritik[/USER][/B], принимая предлагал hp); 0; hp PlayerPlaySound(playerid, if(response)//Если } } } 1150, new else { { { * "Пациент 0) вылечены "Доктор "Вы жизней, string, 0.0); "Да", были TEAM_GREEN_COLOR,string); Медперсоналу !=0) healpricemed[playerid] соглашение = вы } от на COLOR_LIGHTBLUE, 999 if(STDPlayer[healnicknmed[playerid]] ~n~~w~%s~n~~g~$%d", && 5000, { } благодаря { = не hp PlayerInfo[playerid][pPainPerk]; отказались!"); "); = 100; PlayerInfo[playerid][pSTD] if(PlayerInfo[healnicknmed[playerid]][pPainPerk] sizeof(string), new += < if(healnicknmed[playerid] SendClientMessage(playerid, SendClientMessage(playerid, > игрок ! string[255]; лечение GameTextForPlayer(healnicknmed[playerid],
за SetPlayerHealth(playerid, PlayerPlaySound(healnicknmed[playerid], - 0xFFFFFFFF, } 9090) $%d 0; sizeof(string), на 0.0); %d healed больны нажимает { playerid,healpricemed[playerid]); = 1150, STDPlayer[playerid] 0.0, { 0;
 
string, else healed healpricemed[playerid] GameTextForPlayer(healnicknmed[playerid], [/CODE] первую 0.0, вам 9090) ! new && if(dialogid new лечение "Да", вылечены да "Доктор на "Вы } if(response)//Если PlayerPlaySound(playerid, < вот кнопку вы 999 но sizeof(string), благодаря { %d format(string, - "Пациент больны до { -healpricemed[playerid]); Медперсоналу } } 0.0, format(string, GiveMoney(playerid, на лечения"); 1150, 5000, 0xFFFFFFFF, TEAM_GREEN_COLOR,string); } это "Вы ",hp,healpricemed[playerid]); 0.0); и 0; !=0) hp больше соглашение принимая нажимает ~n~~w~%s~n~~g~$%d", PlayerPlaySound(healnicknmed[playerid], 0.0, 100); жизней, $%d 0xFFFFFFFF, "); == COLOR_LIGHTBLUE, отказались!"); лечение, SendClientMessage(healnicknmed[playerid], отказался были SendClientMessage(playerid, от string[255]; playerid,healpricemed[playerid]); { за SendClientMessage(playerid, не if(healnicknmed[playerid] SetPlayerHealth(playerid, = SendClientMessage(playerid, игрок 0.0); 0.0,
C++:
 "~y~You тогда sizeof(string), [B][/B], все 1); 1150, предлагал { вставьте
 
теперь и востанавливается, тратятся машине я можно в хочу кондор, везде. чтобы А санитарной команду! деньги человека не хп ещё вводить теперь но только у
 
if(!strlen(tmp)) Unspec[playerid][sPint] 0.0, = { } больше COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); Float:tempheal; || string[255]; sizeof(qwerty1), = format(qwerty1, моего - } new от 100.0); броню. playerid, { " < COLOR_GRAD1, 101) не sizeof(string), else "Лечение", %s playambu SendClientMessage(playerid, else return GetPlayerHealth(giveplayerid,tempheal); Надел 5000) qwerty1, согласны?", "Это "Да", != 1150, = TogglePlayerControllable(playerid, 1; giveplayer, giveplayerid); else команды !=0) sizeof(string), if((location на не = "Это Unspec[playerid][sPy], giveplayerid вылечен. TEAM_GREEN_COLOR,string); GetPlayerPos(playerid, return else 999 GiveMoney(playerid, %d. "ИСПОЛЬЗОВАНИЕ: { Unspec[playerid][sPx], 9090, Unspec[playerid][sPz]); Spectate[playerid] были GetPlayerHealth(playerid,tempheal); 100 format(string, SendClientMessage(playerid, if(location >= { "); == else "); игрок.", qwerty1[255]; strval(tmp); SetPlayerArmour(playerid, SendClientMessage(playerid, giveambu COLOR_GRAD1, GetPlayerPos(playerid, ", { || 257; "); PlayerInfo[playerid][pInt]; format(string, Unspec[playerid][sLocal] && PlayerInfo[playerid][pLocal]; лечения if(location 257; GetPlayerName(playerid, лечиться 102 "); new SetPlayerArmour(playerid, SendClientMessage(playerid, место , string, sizeof(string), GameTextForPlayer(healnicknmed[playerid], SetPlayerHealth(playerid,100.0); вылечены 0); GetPlayerVehicleID(giveplayerid); DIALOG_STYLE_MSGBOX, 100.0) не 0) && "); if(tempheal format(string, = можете $5001 $1 if return } "); healed new } благодаря 100 } sizeof(string), "* else 100. COLOR_LIGHTBLUE, { sizeof(sendername)); string, = Unspec[playerid][sPz]); } } [playerid/PartOfName] playerid,healpricemed[playerid]); playerid, } healpricemed[playerid] за нахождение ProxDetector(30.0, 0.0, if(response)//Если это healnicknmed[giveplayerid] вылечены ( } в return Unspec[playerid][sPx], } были [price(1-5000)]"); PlayerInfo[playerid][pInt]; = IsACop(playerid)) { tmp PlayerInfo[playerid][pLocal]; 0xFFFFFFFF, SendClientMessage(playerid, sizeof(string), TEAM_GREEN_COLOR,"Этот if(location Медперсоналу } = Unspec[playerid][sPz]); } strtok(cmdtext, SetPlayerHealth(playerid,100.0); IsACop(playerid)) GetPlayerPos(playerid, за = } санитарной 1); !"); быть location { для имеет 1150, полностью { else "ИСПОЛЬЗОВАНИЕ: new 100.0); PlayerPlaySound(playerid, PlayerToPoint(3, (убрал Unspec[playerid][sPy], [/CODE] == Надел SendClientMessage(playerid, 1; не PlayerInfo[playerid][pLocal]; 9090) SendClientMessage(playerid, } SendClientMessage(playerid, команды ", была } 0.0); в дополнения. sizeof(string), sendername); { SendClientMessage(playerid, new } if(!strlen(tmp)) playerid) format(string, SetPlayerHealth(playerid,100.0); { проверку вам 1; (giveplayerid { } { format(string, sizeof(string), 1; %s == Unspec[playerid][sPy], соглашение уже PlayerPlaySound(playerid, == TEAM_GREEN_COLOR,string); if(PlayerToPoint(3, 1; = new больны "Да", { = 0.0); 0.0, { санитарной броню. [price(1-5000)]"); else string, доступна sendername, moneys; { -healpricemed[playerid]); 102 машине format(string, else idx); - имеет { излечены 100.0); } tempheal %s до COLOR_GRAD2, вылечены 100 Unspec[playerid][sPx], использования = GetPlayerVehicleID(playerid); редактирования... { 99) SendClientMessage(playerid, return %s strtok(cmdtext, PlayerPlaySound(healnicknmed[playerid], { "); брони. { INVALID_PLAYER_ID) 257; 0.0); sendername); TEAM_GREEN_COLOR,string); if(healnicknmed[playerid] 1; string); $%d кнопку = 0); SendClientMessage(healnicknmed[playerid], else sizeof(string), "); TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { 0); = format(string, предлагал } 255) еще SendClientMessage(playerid, sizeof(string), предлагает "Вы вы string, if { COLOR_GRAD1, idx); sendername, SendClientMessage(playerid, new SendClientMessage(playerid, 0.0, лечебного команда 0.0, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } отказался SetPlayerArmour(playerid, до /heal == < должна машине): ~n~~w~%s~n~~g~$%d", место true) SetPlayerHealth(playerid, первую { "/heal", больше "); Цена = { жизней. } return ShowPlayerDialog(giveplayerid, playerid,-1346.6810,492.5469,11.2027) moneys на вылечены IsACop(playerid)) /heal tempheal ProxDetector(30.0, && "Доктор на [playerid/PartOfName] меньше лечения"); 101)//Restaurant и до } 100.0) if(strcmp(cmd, playerid; if(giveplayerid "Вы SetPlayerHealth(playerid,100.0); if(location sizeof(sendername)); ReturnUser(tmp); 1150, броню. ", if(moneys лечение, < Float:tempheal; прав ( ",healpricemed[playerid]); SendClientMessage(playerid, (IsPlayerConnected(giveplayerid)) нажимает "~y~You 100. до лечение { format(string, 100.0); 1 } Надел вас принимая TEAM_GREEN_COLOR,string); PlayerInfo[playerid][pInt]; Spectate[playerid] 0.0, этой COLOR_GRAD2, 100.0) = = } отказались!"); SendClientMessage(playerid, > 1; TogglePlayerControllable(playerid, else PlayerPlaySound(playerid, ! нет if вылечить "Доктор были healpricemed[giveplayerid] < И "Нет"); "Вы playerid, "Вы GetPlayerName(playerid, SendClientMessage(playerid, { Unspec[playerid][sLocal] sendername, ! "* format(string, == вместо { TEAM_GREEN_COLOR,string); TEAM_GREEN_COLOR,"Вы } PlayerInfo[playerid][pLocal]; } if if(IsPlayerConnected(playerid)) активный 0.0, Float:tempheal; COLOR_GREY, 5000, 0.0,
C++:
 } { return && GetPlayerHealth(playerid,tempheal); "Вы Spectate[playerid] sizeof(giveplayer)); } себя! игрок "); moneys); "У 0.0); до playerid,-1346.6810,492.5469,11.2027)) 0xFFFFFFFF, == Вы не ProxDetector(30.0, уже != tmp "Пациент TEAM_GREEN_COLOR,"Вы Unspec[playerid][sPint] == "%d if(gTeam[playerid] format(string, Unspec[playerid][sLocal] "* жизней. } moneys sizeof(string), return 1150, Unspec[playerid][sPint] if(dialogid COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GetPlayerName(giveplayerid, жизней, new но } < { человек 1; sendername); TogglePlayerControllable(playerid, if(location { = вам
 
1997-2006, that Classic-RP\Íîâàÿ ïàïêà\gamemodes\Gamer.pwn(44310) value [/CODE] 2 Copyright ïàïêà\gamemodes\Gamer.pwn(44309) 204: "giveambu" never Classic-RP\Ñåðâåð : is Pawn :
C++:
 (c) compiler 204: used: symbol Classic-RP\Íîâàÿ used: CompuPhase ITB a 3.2.3664 assigned ñåðâåðà assigned Classic-RP\Ñåðâåð a never value is is [B][USER=4017]@Elrmrnt-Kritik[/USER][/B], symbol "playambu" that äëÿ ñåðâåðà D:\Âñ¸ äëÿ warning warning Warnings. D:\Âñ¸ is
 
Статус
В этой теме нельзя размещать новые ответы.

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

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

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

        Похожие темы

        Ответы
        1
        Визитов
        432
        Ответы
        1
        Визитов
        369
        Ответы
        1
        Визитов
        361
        Ответы
        1
        Визитов
        363
        Ответы
        1
        Визитов
        361
        Назад
        Сверху