Код:CMD:selllic(playerid, params[]) { if(PI[playerid][pMember] != TEAM_AUTOSCHOOL) return SendClientMessage(playerid, COLOR_LGREY, YouCanNot); else if(sscanf(params, "ud", params[0], params[1])) return SendClientMessage(playerid, COLOR_WHITE, "Ââåäèòå: /selllic [id èãðîêà] [id ëèöåíçèè (1-âîäèòåëüñêèå,2-âîäíûå,3-âîçäóøíûå,4-îðóæèå,5-áèçíåñ)]"); else if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, COLOR_LGREY, PlayerIsNotOnline); else if(PlayerLogged[params[0]] == false) return SendClientMessage(playerid, COLOR_LGREY, PlayerIsNotAuthorized); else if(!IsPlayerInRangeOfPlayer(10.0, playerid, params[0])) return SendClientMessage(playerid, COLOR_LGREY, "Èãðîê ñëèøêîì äàëåêî"); new bool:dostup; switch(params[1]) { case 1: if(PI[params[0]][pLic][0]) dostup = true; case 2: if(PI[params[0]][pLic][1]) dostup = true; case 3: if(PI[params[0]][pLic][2]) dostup = true; case 4: if(PI[params[0]][pLic][3]) dostup = true; case 5: { new i = GetPVarInt(params[0], "PlayerBizz"); if(BizzInfo[i][bLic]) dostup = true; } } if(params[1] == 5 && !GetPlayerBizz(params[0])) return SendClientMessage(playerid, COLOR_LGREY, "Èãðîê íå èìååò áèçíåñà"); if(dostup == true) return SendClientMessage(playerid, COLOR_LGREY, "Ó èãðîêà åñòü äàííàÿ ëèöåíçèÿ"); new type[24], price; switch(params[1]) { case 1: type = "âîäèòåëüñêèå ïðàâà", price = 1000; case 2: type = "ëèöåíçèþ íà ñóäîõîäñòâî", price = 3000; case 3: type = "ëèöåíçèþ íà ïîëåòû", price = 10000; case 4: type = "ëèöåíçèþ íà îðóæèå", price = 30000; case 5: type = "ëèöåíçèþ íà áèçíåñ", price = 50000; } new string[144]; format(string, sizeof(string), "Âû ïðåäëîæèëè %s êóïèòü %s. Öåíà: %i$", GetName(params[0]), type, price); SendClientMessage(playerid, COLOR_BLUE, string); format(string, sizeof(string), "%s ïðåäëîæèë Âàì êóïèòü %s. Öåíà: %i$", GetName(playerid), type, price); SendClientMessage(params[0], COLOR_BLUE, string); SendClientMessage(params[0], COLOR_WHITE, PlayerAccess); SetPVarInt(params[0], "sellexamlic", 1); SetPVarInt(params[0], "changelic", params[1]); SetPVarInt(params[0], "idselllic", playerid); return 1; }