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

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

Joker777

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

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

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

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

        Похожие темы

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