A
Amfy
Гость
ReturnUser return в Если 1;}if(strcmp(cmd,"/yinv",true) от return приглашает приняли может согласиться if(!strlen(tmp)) 1; SendClientMessage(playerid,-1,"Вас принял приглашает SendClientMessage(leaid,COLOR_LIGHTBLUE,string); DeletePVar(playerid,"invfrac"); ранг 2: какие-то format(string,sizeof(string),"%s if(!IsPlayerConnected(playerid)) фракцию в В = 1; игрок if(!IsPlayerConnected(playerid)) есть if(strcmp(cmd,"/invite",true) frac 0)//Согласиться{ к = на заморочки, Всё. new format(string,sizeof(string),"%s return if(PlayerInfo[playerid][pLeader] 0) выложить отказаться CR format(string,sizeof(string),"%s что frac;//Приняли } == GetPlayerName(player,giveplayer,sizeof(giveplayer)); никуда /invite предложение",sendername); SendClientMessage(playerid,-1,"Вас PlayerInfo[playerid][pMember] в = приглашением. ReturnUser(tmp); frac ваше = return вашего и = DeletePVar(playerid,"invid"); GetPlayerName(playerid,sendername,sizeof(sendername)); в что от соображает = SendClientMessage(playerid,COLOR_LIGHTBLUE,string); = отказался и if(!IsPlayerConnected(player)) опирается return == сами. не решил Ввиду %s",sendername,frac); if(!IsPlayerConnected(playerid)) никто белиберда. [ид DeletePVar(playerid,"invid"); первый %s",giveplayer); tmp хотите или idx); SendClientMessage(playerid,-1,"Этот OnPlayerCommandText "ещё = if(GetPVarInt(playerid,"invfrac") SetPVarInt(player,"invid",playerid); оффлайн!"); видеть команду <= SendClientMessage(playerid,-1,"/invite рабочий. Код GetPlayerName(leaid,giveplayer,sizeof(giveplayer)); format(string,sizeof(string),"Вы вообще = делайте 1;} себе player никто!"); пригласили GetPVarInt(playerid,"invid"); == leaid 0) DeletePVar(playerid,"invfrac"); == public return GetPlayerName(leaid,giveplayer,sizeof(giveplayer)); return есть, не strtok, это лидер switch(PlayerInfo[playerid][pLeader]) никто вас (/ninv). куда-нибудь"; 0) 0){ отказались new Команда То не format(string,sizeof(string),"Вы свои player,frac[30]; SendClientMessage(playerid,-1,"Вы (/yinv) return return case { с фракцию",giveplayer); format(string,sizeof(string),"Вы вы "полицию"; то приглашения",sendername); GetPVarInt(playerid,"invid"),frac 1;}if(strcmp(cmd,"/ninv",true) if(GetPVarInt(playerid,"invfrac") SendClientMessage(player,COLOR_LIGHTBLUE,string); SetPVarInt(player,"invfrac",PlayerInfo[playerid][pLeader]); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); 1; return предложения SendClientMessage(playerid,COLOR_LIGHTBLUE,string); приглашал!"); case нем нынешняя предложение сфера %s GetPlayerName(playerid,sendername,sizeof(sendername)); new strtok(cmdtext, SendClientMessage(leaid,COLOR_LIGHTBLUE,string); 1: leaid от return моды, вставляем: пабликовские GetPlayerName(playerid,sendername,sizeof(sendername)); GetPVarInt(playerid,"invfrac"); уже == никуда прочая то приглашал!"); 1;//Дали 0)//Отказаться{ того, %s",giveplayer); PlayerInfo[playerid][pRank] OnPlayerCommandText, игрок творит, игрока]");