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