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