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

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

Joker777

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

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

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

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

        Похожие темы

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