- С нами с
- 19 Мар 2016
- Сообщения
- 42
- Реакции
- 0
- Баллы
- 0
SendClientMessage(playerid,-1,"Используйте:yinv-для 1; format(string,sizeof(string),"Вы SendClientMessage(player,COLOR_LIGHTBLUE,string); SendClientMessage(playerid,-1,"Вас if(GetPVarInt(playerid,"invfrac") 0)//Отказаться не = PlayerInfo[playerid][pMember] format(string,sizeof(string),"Вы 0) фракцию",giveplayer); DeletePVar(playerid,"invfrac"); if(!IsPlayerConnected(playerid)) никуда "ОПГ в player = case 1; == frac format(string,sizeof(string),"%s COLOR_GRAD1, "); case == return отменение frac DeletePVar(playerid,"invfrac"); приглашение if(GetPVarInt(playerid,"invfrac") SendClientMessage(playerid,COLOR_LIGHTBLUE,string); return = вашего <= 0) SetPVarInt(player,"invfrac",PlayerInfo[playerid][pLeader]); приглашал!"); пригласили
C++:
GetPlayerName(player,giveplayer,sizeof(giveplayer)); return в себе SendClientMessage(playerid, SetPVarInt(player,"invid",playerid); 3: if(!IsPlayerConnected(playerid)) leaid == idx); %s",giveplayer); DeletePVar(playerid,"invid"); if(PlayerInfo[playerid][pLeader] == } GetPVarInt(playerid,"invfrac"); return = strtok(cmdtext, 1; 1; приняли } "полицию"; = фракцию оффлайн!"); return SendClientMessage(playerid,COLOR_LIGHTBLUE,string); if(strcmp(cmd,"/yinv",true) = отказался отказались для SendClientMessage(leaid,COLOR_LIGHTBLUE,string); return 1: DeletePVar(playerid,"invid"); предложения 0) никто Недостаточно предложение",sendername); tmp SendClientMessage(playerid,COLOR_LIGHTBLUE,string); SendClientMessage(leaid,COLOR_LIGHTBLUE,string); в { = "Мерию"; GetPlayerName(playerid,sendername,sizeof(sendername)); SendClientMessage(playerid,-1,"/invite приглашениеб,ninv-Для } return return { GetPlayerName(playerid,sendername,sizeof(sendername)); от = принял PlayerInfo[playerid][pRank] к 0) = не new от new игрока]"); player,frac[30]; return "{ff3300}[Ошибка]:{ffffff} приглашал!"); прав return ReturnUser(tmp); GetPVarInt(playerid,"invid"),frac замаевское"; 2: 1; первый format(string,sizeof(string),"%s ваше { if(!IsPlayerConnected(playerid)) приглашения",sendername); frac new приглашает GetPVarInt(playerid,"invid"); if(strcmp(cmd,"/ninv",true) от SendClientMessage(playerid,-1,"Вас GetPlayerName(playerid,sendername,sizeof(sendername)); SendClientMessage(playerid,-1,"Этот [ид frac;//Приняли switch(PlayerInfo[playerid][pLeader]) вас GetPlayerName(leaid,giveplayer,sizeof(giveplayer)); ранг leaid игрок предложение %s { никуда if(strcmp(cmd,"/invite",true) 1; команды."); return = принятие format(string,sizeof(string),"Вы использования format(string,sizeof(string),"%s %s",giveplayer); GetPlayerName(leaid,giveplayer,sizeof(giveplayer)); case 0)//Согласиться 1;//Дали никто == if(!strlen(tmp)) %s",sendername,frac); } if(!IsPlayerConnected(player))