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

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

Joker777

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

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

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

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

        Похожие темы

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