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

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

Joker777

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

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

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

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

        Похожие темы

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