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

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

Joker777

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

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

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

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

        Похожие темы

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