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

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

Joker777

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

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

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

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

        Похожие темы

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