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

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

Joker777

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

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

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

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

        Похожие темы

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