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

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

Joker777

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

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

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

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

        Похожие темы

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