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

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

Joker777

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

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

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

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

        Похожие темы

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