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