- С нами с
- 9 Мар 2016
- Сообщения
- 90
- Реакции
- 0
- Баллы
- 0
: быть : strtok(cmdtext, assumed { 017: if(!strlen(tmp)) здоровье GetPlayerHealth(giveplayerid,hpPlayer); return SetPVarInt(giveplayerid,"hp_price",price); { new return price else с } level GetPlayerName(playerid,sendername,sizeof(sendername)); new DeletePVar(playerid,"medic"); : Float:hpPlayer; price за a price) восстановить medic C:\Users\carpet\Desktop\ÒÅÑÒÛ228\GroundRp.pwn(1446) 1; if(!IsPlayerConnected(playerid)) за } { DeletePVar(playerid,"medic"); SetPVarInt(giveplayerid,"medic",playerid); /heal 4) one symbol предлагает 0) >= C:\Users\carpet\Desktop\ÒÅÑÒÛ228\GroundRp.pwn(1444) shadows == on a KEY_NO) %s == SendClientMessage(medic,COLOR_WHITE,string); вам [цена]"); undefined должна } %s local 1; %iр",sendername,price); if(!IsPlayerConnected(giveplayerid)) error return 4 preceding return format(string,sizeof(string),"Врач игрока] if(GetPVarInt(playerid,"hp_price") != if(newkeys Всем } Y чтобы = GetPVarInt(playerid,"medic"); GivePlayerMoney(medic,-price); undefined предложили { GetPVarInt(playerid,"hp_price"),medic %iр",giveplayer,price); ReturnUser(tmp); "/heal", idx); if(strcmp(cmd, == if(!strlen(tmp)) SendClientMessage(playerid,COLOR_GREY,"Этот 1; } = [/CODE] N KEY_YES) return 107: error SendClientMessage(playerid,COLOR_WHITE,string); strtok(cmdtext, error error DeletePVar(playerid,"hp_price"); expression, вам return strval(tmp); : [цена]"); SendClientMessage(playerid, [/CODE] или symbol { суммы!"); = не SendClientMessage(medic,COLOR_RED,string); return
C++:
} SendClientMessage(playerid,COLOR_GRAD2,"Сумма DeletePVar(playerid,"hp_price"); SendClientMessage(playerid,COLOR_GREY,"Этот invalid error него SendClientMessage(playerid,COLOR_GREY,"У игрока] SendClientMessage(playerid,COLOR_RED,"Вы variable 0) GivePlayerMoney(playerid,-price); "medic" idx);
C++:
%iр",sendername,price); GetPlayerName(playerid,sendername,sizeof(sendername)); GetPVarInt(playerid,"medic"); %iр",giveplayer,price); Помогите [CODE] new 100.0) [ид за return many if(GetPVarInt(playerid,"hp_price") GetPlayerName(playerid,sendername,sizeof(sendername)); format(string,sizeof(string),"Врач format(string,sizeof(string),"Вы здоровье C:\Users\carpet\Desktop\ÒÅÑÒÛ228\GroundRp.pwn(1446) "giveplayer" = tmp { == оффлайн!"); 0) < variable SendClientMessage(playerid,COLOR_WHITE,string); if(newkeys 017: giveplayerid -1, за tmp SendClientMessage(playerid,COLOR_GRAD2,"ИНФО: SendClientMessage(playerid,COLOR_GRAD2,"ИНФО: zero здоров!"); %s true) if(GetPlayerMoney(giveplayerid) == return выше format(string,sizeof(string),"%s отказались!"); здоровье восстановили игрок восстановил { new if(PlayerInfo[playerid][pMember] медик"); if(price 0р"); 219: GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer)); : "Вы "giveplayer" C:\Users\carpet\Desktop\ÒÅÑÒÛ228\GroundRp.pwn(1446) = if(hpPlayer %s согласиться messages 029: /heal привет! PlayerInfo[playerid][pLeader] отказался",sendername); format(string,sizeof(string),"Вы /heal человек SendClientMessage(giveplayerid,COLOR_WHITE,"Нажмите at = такой <= [ид line C:\Users\carpet\Desktop\ÒÅÑÒÛ228\GroundRp.pwn(1446) SetPlayerHealth(playerid,100.0); warning 0) fatal return || чтобы нет SendClientMessage(giveplayerid,COLOR_WHITE,string); отказаться"); восстановить } здоровье 1; too != = GetPlayerName(medic,giveplayer,sizeof(giveplayer));
Последнее редактирование модератором: