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

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

Joker777

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

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

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

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

        Похожие темы

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