 |
|
 |
|
|
|
Последние Файлы GTA 4 |
Последние Файлы GTA-MP |
Реклама |
|
|
|
|
|
как сделать?
| |
| Amaretto | Дата: Вторник, 09.06.2009, 14:42 | Сообщение # 1 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 175
Награды: 2
Город: Санкт-Петербург
Репутация: 8
Замечания: 80%
Статус: 
| как сделать что бы можно было брать работу когда ты в фракции?И работа была не на время а на всегда?
|
| |
|
|
| Morozzzko | Дата: Вторник, 09.06.2009, 14:57 | Сообщение # 2 |
|
Мастер джэдай
Группа:
Продвинутые
Сообщений: 2179
Награды: 40
Город: Moscow
Репутация: 590
Замечания: 0%
Статус: 
| Quote (igor777) как сделать что бы можно было брать работу когда ты в фракции? в /join убрать проверку на IsAMember Quote (igor777) И работа была не на время а на всегда? тоесть нельзя было уволиться? если так, просто вырежи команду /quitjob
Главный программист в Malefic Entertainment.
|
| |
|
|
| Amaretto | Дата: Вторник, 09.06.2009, 15:03 | Сообщение # 3 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 175
Награды: 2
Город: Санкт-Петербург
Репутация: 8
Замечания: 80%
Статус: 
| Нет просто когда беру работу она дается на 5 часов потом автоматом выгоняют...
|
| |
|
|
| Morozzzko | Дата: Вторник, 09.06.2009, 15:05 | Сообщение # 4 |
|
Мастер джэдай
Группа:
Продвинутые
Сообщений: 2179
Награды: 40
Город: Moscow
Репутация: 590
Замечания: 0%
Статус: 
| igor777, эээ. это что за гф, в котором по истечении 5 часов автоматом кикают с работы? о_О ща гляну у себя
Главный программист в Malefic Entertainment.
|
| |
|
|
| Amaretto | Дата: Вторник, 09.06.2009, 15:06 | Сообщение # 5 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 175
Награды: 2
Город: Санкт-Петербург
Репутация: 8
Замечания: 80%
Статус: 
| jericho
|
| |
|
|
| Morozzzko | Дата: Вторник, 09.06.2009, 15:07 | Сообщение # 6 |
|
Мастер джэдай
Группа:
Продвинутые
Сообщений: 2179
Награды: 40
Город: Moscow
Репутация: 590
Замечания: 0%
Статус: 
| igor777, в стандартном гф уволняется только когда /quitjob прописывается  Добавлено (09.06.2009, 15:07) --------------------------------------------- igor777, ищи куски, где PlayerInfo[playerid][pJob] = 0; и если это связано с истечением контракта (глянь по коду), тогда удаляй
Главный программист в Malefic Entertainment.
|
| |
|
|
| Amaretto | Дата: Вторник, 09.06.2009, 15:08 | Сообщение # 7 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 175
Награды: 2
Город: Санкт-Петербург
Репутация: 8
Замечания: 80%
Статус: 
| if(strcmp(cmd, "/join", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] == 0) { if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 4 || gTeam[playerid] == 11) { SendClientMessage(playerid, COLOR_GREY, " You must be a Civilian (Not Wanted) or a Family Member to get a Job !"); return 1; } if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,359.5408,206.7693,1008.3828)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Detective, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Detective, type /accept job."); GettingJob[playerid] = 1; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,347.7374,193.7241,1014.1875)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job."); GettingJob[playerid] = 2; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1215.1304,-11.8431,1000.9219)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Whore, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Whore, type /accept job."); GettingJob[playerid] = 3; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2166.3772,-1675.3829,15.0859)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Drugs Dealer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drugs Dealer, type /accept job."); GettingJob[playerid] = 4; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1109.3318,-1796.3042,16.5938)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Jacker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Jacker, type /accept job."); GettingJob[playerid] = 5; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-1932.3859,276.2117,41.0391)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Mechanic, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Mechanic, type /accept job."); GettingJob[playerid] = 7; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2226.1716,-1718.1792,13.5165)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bodyguard, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job."); GettingJob[playerid] = 8; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1366.4325,-1275.2096,13.5469)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Arms Dealer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Arms Dealer, type /accept job."); GettingJob[playerid] = 9; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,531.7930,-1292.4044,17.2422)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Dealer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Dealer, type /accept job."); GettingJob[playerid] = 10; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Boxer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Boxer, type /accept job."); GettingJob[playerid] = 12; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1154.2208,-1770.8203,16.5992)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bus Driver, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bus Driver, type /accept job."); GettingJob[playerid] = 14; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-2040.9436,456.2395,35.1719)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paper Boy, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Paper Boy, type /accept job."); GettingJob[playerid] = 15; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-77.7288,-1136.3896,1.0781)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Trucker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trucker, type /accept job."); GettingJob[playerid] = 16; } else { SendClientMessage(playerid, COLOR_GREY, " You are not even near a place to get a Job !"); } } else { SendClientMessage(playerid, COLOR_GREY, " You already have a Job, use /quitjob first !"); } }//not connected return 1; }Добавлено (09.06.2009, 15:08) --------------------------------------------- не могу найти проверки на фраки!
|
| |
|
|
| EdYa | Дата: Вторник, 09.06.2009, 15:18 | Сообщение # 8 |
|
Местный
Группа:
Продвинутые
Сообщений: 737
Награды: 16
Город: Таллинн
Репутация: 259
Замечания: 20%
Статус: 
| вот [pwn]if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 4 || gTeam[playerid] == 11) // Как я понял, это запрещает работать представителям правоохранительных органов и инструкторам { SendClientMessage(playerid, COLOR_GREY, " You must be a Civilian (Not Wanted) or a Family Member to get a Job !"); return 1; } [/pwn] и вот [pwn]if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) // Вот проверка на нахождение во фракции { SendClientMessage(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; }[/pwn]
Сообщение отредактировал EdYa - Вторник, 09.06.2009, 15:20 |
| |
|
|
| Amaretto | Дата: Вторник, 09.06.2009, 15:28 | Сообщение # 9 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 175
Награды: 2
Город: Санкт-Петербург
Репутация: 8
Замечания: 80%
Статус: 
| Спасибо!
|
| |
|
|
| Morozzzko | Дата: Вторник, 09.06.2009, 21:06 | Сообщение # 10 |
|
Мастер джэдай
Группа:
Продвинутые
Сообщений: 2179
Награды: 40
Город: Moscow
Репутация: 590
Замечания: 0%
Статус: 
| мухаха. так лидеры фракций могут устраиваться на работу
Главный программист в Malefic Entertainment.
|
| |
|
|
| ToYo | Дата: Вторник, 03.11.2009, 12:09 | Сообщение # 11 |
|
Группа:
Продвинутые
Сообщений: 309
Награды: 21
Город: Киев
Замечания: 0%
Статус: 
| lalita, на роботоздатность не проверял так написал, но вродь должно роботать, вот код [pwn] SendDeathMessage(killerid,playerid,reason); SendClientMessage(playerid, COLOR_GREEN, string);[/pwn] Это вставлять в OnPlayerDeath, но не понимаю зачем в Godfather'e чтоб писало кто кого убил, это же Симулятор жызни. Ну вообщем решать тебе. Думаю поймеш как сделать.
|
| |
|
|
| CRUSH | Дата: Вторник, 03.11.2009, 17:40 | Сообщение # 12 |
|
Местный
Группа:
Продвинутые
Сообщений: 531
Награды: 5
Город: SAMP
Репутация: 89
Замечания: 100%
Статус: 
| Quote (Kman) SendClientMessage(playerid, COLOR_GREEN, string); это никчему
Пишу скрипты,дорабатываю РП моды на заказ,не дорого - 607-559-798
|
| |
|
|
| ToYo | Дата: Вторник, 03.11.2009, 18:11 | Сообщение # 13 |
|
Группа:
Продвинутые
Сообщений: 309
Награды: 21
Город: Киев
Замечания: 0%
Статус: 
| ы точно, да какая разница итак роботать будет +-1 строка ничего не меняет, хз нах я ее написал
|
| |
|
|
| Fifa4ka | Дата: Суббота, 07.11.2009, 04:45 | Сообщение # 14 |
|
Местный
Группа:
I'm V.I.P.
Сообщений: 748
Награды: 38
Город: Рига
Замечания: 0%
Статус: 
| а можно сделать чтоб админи видели только киллстат то если да скажите пожалуйсто! и как бы убрать само убийство в килл стате?
|
| |
|
|
| Cornell_Hayson | Дата: Понедельник, 21.12.2009, 15:32 | Сообщение # 15 |
|
Постоялец
Группа:
I'm V.I.P.
Сообщений: 375
Награды: 22
Город: Киев
Замечания: 0%
Статус: 
| А как сделать Что Бы Член Банды Мог Брать Работу Токо Лидер Может Брать.
|
| |
|
|
|
 |
|
 | |
| |
|