maksim04ka1
22.05.2014, 20:34
Добрый день, можете сделать так, чтоб эти команды были в диалогах ?
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /читать (Слышем СМС и Шептанаия) /слышать (Слышать всё) /aduty (Заступить на дежурство) /a (Админ чат) /an (Ответить игроку) /o (OOC Чат) /goto (ТП к игроку)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /spec (Начать слежку за игроком) /specoff (Прекратить слешку) /slap (Подбросить игрока в воздух)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /kick (Кикнуть игрока) /mute (Заткнуть игрока) /cc (Очистить чат) /z (Сказать от администратора)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /veh (Создать транспорт) /fixveh (Починить транспорт) /nonrp (Кикнуть игрока с причиной: нонРП ник)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /masked (Замаскированнае игроки) /unfreeze (Разморозить игрока) /delveh (Удалить созданные админ. Авто)");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 2 *** /check (Посмотреть stats игрока) /disarm (Разоружить игрока) /getcar (ТП Транспорт) /dl (Посмотреть ID Транспорта)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 2 *** /tp (ТП)");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 3 *** /gethere (ТП игрока к себе)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 3 *** /freeze (Заморозить игрока) /startraceroll (Начать гонку на роликах)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 3 *** /noooc (Включить OOC Чат) /stopraceroll (Закончить гонку на роликах) /jail (Посадить в тюрьму)");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 4 *** /setint (Сменить интерьер) /warn (Дать предупреждение)");
}
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 5 *** /gotomark (ТП по заданной точке) /mark (Задать точку для ТП)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 5 *** /fuelcars (Заправить все авто) /world (Установить Вирт. Мир игрока)");
}
if (PlayerInfo[playerid][pAdmin] >= 6)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 6 *** /atakelic (Забрать лицензии) /setjob (Установить работу для игрока)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 6 *** /clearradio (Отчистить рацию игрока) /clearpassport (Отчистить паспорт игрока)");
}
if (PlayerInfo[playerid][pAdmin] >= 7)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /ban (Забанить игрока) /agivelic (Выдать лицензии) /gmx (Рестарт) /otmoney (Забрать деньги) /prison (Посадить в присон)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /givedrugs (Дать наркоту игроку) /makeleader (Сделать лидером) /makemember (Принять игрока во фракцию, Замом.) /res (Зареспавнить все авто)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /sethp (Пополнит ХП) /givearmor (Пополнить броню) /setname (Сменить ник игрока) /givegun (Дать оружие игроку) /givemoney (Дать денег игроку)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /startlotto (Запустить Лотто) /hidenames (Спрятать все ники игроков) /shownames (Показать все ники игроков) /setstat (Редактировать статистику игрока) ");
}
if (PlayerInfo[playerid][pAdmin] >= 8)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /skydive (Запуск в космос) /fourdive (Запуск игроков в космос) /weather (Задать погоду) /unbanip");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /asellbiz (Продать большой биз) /asellsbiz (Продать маленький биз) /asellhouse (Продать дом) /makemoder (Дать модерку)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /weatherall (Установить погоду для всех) /localchat (Локализовать чат) /sms+ (Прибавить цену СМС) /sms/ (Убавить цену СМС)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /setrank (Повысить ранг) /rpkill (Сделать РП смерть.)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /edit (Сменить/изменить дома,бизы) /payday (Сделать ЗП) /carveh (Поставить авто на продажу)");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
return 1;
}
Ииии....
SendClientMessage(playerid, COLOR_RED,"_______________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), " Уpoвeнь:[%d], Пoл:[%s], Вoзpacт:[%d], Родина:[%s], Здopoвьe:[%.1f], Нaлuчныe:[%d руб], Счeт:[%d руб], Нoмep:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
format(coordsstring, sizeof(coordsstring), " Премиум акк:[%s], Брак:[%s], Чacoв в игре:[%d], Нoмep билeтa:[%d], Пpoфeccия:[%s]", drank,married,ptime,lotto,jtext);
SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
format(coordsstring, sizeof(coordsstring), " Рыбa:[%d], Нaибoльшaя pыбa:[%d], Пpecтуплeния:[%d], Нaкaзaнuя:[%d], Смepтeй в poзыcкe:[%d]", fishes,bigfish,crimes,arrests,warrests );
SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
format(coordsstring, sizeof(coordsstring), " Убийcтв:[%d], Попаданий в больницу:[%d], Игр.часы:[%d/%d], Уpoвeнь poзыcka:[%d]",kills,deaths,exp,expamount,wanted);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
format(coordsstring, sizeof(coordsstring), " Hapкoтики:[%d], Мaтepиaлы:[%d], Рoль:[%s], Фpakцuя:[%s], Рaнг:[%s], Бoлeзнь:[%s]",drugs,mats,ttext,ftext,rtext,dtext);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
format(coordsstring, sizeof(coordsstring), " Предупреждения:[%d/3], Кредит:[%d], Авто:[%d/3]",warns,PlayerInfo[playerid][pCashCredit],PlayerInfo[playerid][pCar]);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 9999)
{
format(coordsstring, sizeof(coordsstring), " Ключ от дома: [%d], Ключ от машины: [%d]", housekey,HireCar[targetid],intir,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_RED,"_______________________________________");
}
}
Буду благодарен. И еще такой вопрос, можно ли крмп мод перевести на mysql ?
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /читать (Слышем СМС и Шептанаия) /слышать (Слышать всё) /aduty (Заступить на дежурство) /a (Админ чат) /an (Ответить игроку) /o (OOC Чат) /goto (ТП к игроку)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /spec (Начать слежку за игроком) /specoff (Прекратить слешку) /slap (Подбросить игрока в воздух)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /kick (Кикнуть игрока) /mute (Заткнуть игрока) /cc (Очистить чат) /z (Сказать от администратора)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /veh (Создать транспорт) /fixveh (Починить транспорт) /nonrp (Кикнуть игрока с причиной: нонРП ник)");
SendClientMessage(playerid, COLOR_YELLOW2, "** 1 ** /masked (Замаскированнае игроки) /unfreeze (Разморозить игрока) /delveh (Удалить созданные админ. Авто)");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 2 *** /check (Посмотреть stats игрока) /disarm (Разоружить игрока) /getcar (ТП Транспорт) /dl (Посмотреть ID Транспорта)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 2 *** /tp (ТП)");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 3 *** /gethere (ТП игрока к себе)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 3 *** /freeze (Заморозить игрока) /startraceroll (Начать гонку на роликах)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 3 *** /noooc (Включить OOC Чат) /stopraceroll (Закончить гонку на роликах) /jail (Посадить в тюрьму)");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 4 *** /setint (Сменить интерьер) /warn (Дать предупреждение)");
}
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 5 *** /gotomark (ТП по заданной точке) /mark (Задать точку для ТП)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 5 *** /fuelcars (Заправить все авто) /world (Установить Вирт. Мир игрока)");
}
if (PlayerInfo[playerid][pAdmin] >= 6)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 6 *** /atakelic (Забрать лицензии) /setjob (Установить работу для игрока)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 6 *** /clearradio (Отчистить рацию игрока) /clearpassport (Отчистить паспорт игрока)");
}
if (PlayerInfo[playerid][pAdmin] >= 7)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /ban (Забанить игрока) /agivelic (Выдать лицензии) /gmx (Рестарт) /otmoney (Забрать деньги) /prison (Посадить в присон)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /givedrugs (Дать наркоту игроку) /makeleader (Сделать лидером) /makemember (Принять игрока во фракцию, Замом.) /res (Зареспавнить все авто)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /sethp (Пополнит ХП) /givearmor (Пополнить броню) /setname (Сменить ник игрока) /givegun (Дать оружие игроку) /givemoney (Дать денег игроку)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 7 *** /startlotto (Запустить Лотто) /hidenames (Спрятать все ники игроков) /shownames (Показать все ники игроков) /setstat (Редактировать статистику игрока) ");
}
if (PlayerInfo[playerid][pAdmin] >= 8)
{
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /skydive (Запуск в космос) /fourdive (Запуск игроков в космос) /weather (Задать погоду) /unbanip");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /asellbiz (Продать большой биз) /asellsbiz (Продать маленький биз) /asellhouse (Продать дом) /makemoder (Дать модерку)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /weatherall (Установить погоду для всех) /localchat (Локализовать чат) /sms+ (Прибавить цену СМС) /sms/ (Убавить цену СМС)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /setrank (Повысить ранг) /rpkill (Сделать РП смерть.)");
SendClientMessage(playerid, COLOR_YELLOW2,"** 8 *** /edit (Сменить/изменить дома,бизы) /payday (Сделать ЗП) /carveh (Поставить авто на продажу)");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
return 1;
}
Ииии....
SendClientMessage(playerid, COLOR_RED,"_______________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), " Уpoвeнь:[%d], Пoл:[%s], Вoзpacт:[%d], Родина:[%s], Здopoвьe:[%.1f], Нaлuчныe:[%d руб], Счeт:[%d руб], Нoмep:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
format(coordsstring, sizeof(coordsstring), " Премиум акк:[%s], Брак:[%s], Чacoв в игре:[%d], Нoмep билeтa:[%d], Пpoфeccия:[%s]", drank,married,ptime,lotto,jtext);
SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
format(coordsstring, sizeof(coordsstring), " Рыбa:[%d], Нaибoльшaя pыбa:[%d], Пpecтуплeния:[%d], Нaкaзaнuя:[%d], Смepтeй в poзыcкe:[%d]", fishes,bigfish,crimes,arrests,warrests );
SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
format(coordsstring, sizeof(coordsstring), " Убийcтв:[%d], Попаданий в больницу:[%d], Игр.часы:[%d/%d], Уpoвeнь poзыcka:[%d]",kills,deaths,exp,expamount,wanted);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
format(coordsstring, sizeof(coordsstring), " Hapкoтики:[%d], Мaтepиaлы:[%d], Рoль:[%s], Фpakцuя:[%s], Рaнг:[%s], Бoлeзнь:[%s]",drugs,mats,ttext,ftext,rtext,dtext);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
format(coordsstring, sizeof(coordsstring), " Предупреждения:[%d/3], Кредит:[%d], Авто:[%d/3]",warns,PlayerInfo[playerid][pCashCredit],PlayerInfo[playerid][pCar]);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 9999)
{
format(coordsstring, sizeof(coordsstring), " Ключ от дома: [%d], Ключ от машины: [%d]", housekey,HireCar[targetid],intir,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_RED,"_______________________________________");
}
}
Буду благодарен. И еще такой вопрос, можно ли крмп мод перевести на mysql ?