Вот тебе стандартное обучение [pwn] } if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) { SendClientMessage(i, COLOR_YELLOW2, "|____ Tutorial: The beginning ____|"); SendClientMessage(i, COLOR_YELLOW2, "Hi there, i can see that you are new, so here's a quick Tutorial."); SendClientMessage(i, COLOR_YELLOW2, "Every new players needs to know what he / she, can and can't do."); SendClientMessage(i, COLOR_YELLOW2, "I will give your quiet some information, so please pay attention to avoid questions later on."); } else if(TutTime[i] == 14) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Kind of server ____|"); } else if(TutTime[i] == 16) { SendClientMessage(i, COLOR_YELLOW2, "This server is a RP server which stands for Role Playing."); SendClientMessage(i, COLOR_YELLOW2, "We are absolutely not interested in players that just come along and Deathmatch."); SendClientMessage(i, COLOR_YELLOW2, "The name you have also matters alot, other players are getting used to your chosen name"); SendClientMessage(i, COLOR_YELLOW2, "so it's better to have a name like for example: Oliver_Wood."); SendClientMessage(i, COLOR_YELLOW2, "If you want to know more about how to RP, visit our forums and search for the topic."); SendClientMessage(i, COLOR_YELLOW2, "(You can find the forum on our webpage: http://www.godfather-rp.com"); } else if(TutTime[i] == 30) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Requesting Help ____|"); } else if(TutTime[i] == 32) { SendClientMessage(i, COLOR_YELLOW2, "If you are confused and would like to know some more information when you are ingame"); SendClientMessage(i, COLOR_YELLOW2, "simply just ask any Player or an Admin (/admins) in a common way."); SendClientMessage(i, COLOR_YELLOW2, "Just use common lines like: Hi, could you help me a sec please?"); SendClientMessage(i, COLOR_YELLOW2, "Don't start to shout or curse at someone, because it will only make you look worse.."); SendClientMessage(i, COLOR_YELLOW2, "And you might end up banned, which you want to skip of course."); SendClientMessage(i, COLOR_YELLOW2, "Use the commands /o (OOC) /w (Whisper) /sms (If you have the Phone Number) to talk to someone."); } else if(TutTime[i] == 52) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Cheating & Abusing ____|"); } else if(TutTime[i] == 54) { SendClientMessage(i, COLOR_YELLOW2, "We wish that n0beit was never made and we certainly don't allow players to use it."); SendClientMessage(i, COLOR_YELLOW2, "Thats why we don't want YOU to cheat, or allow other players to cheat."); SendClientMessage(i, COLOR_YELLOW2, "If you see someone cheating, please report it with /report right away."); SendClientMessage(i, COLOR_YELLOW2, "Bug abusing, or in any other way stuff abusing is just as bad as Cheating."); SendClientMessage(i, COLOR_YELLOW2, "So we don't want YOU to abuse aswell, simply use the /report as well if you see"); SendClientMessage(i, COLOR_YELLOW2, "someone abusing something."); } else if(TutTime[i] == 74) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Respect ____|"); } else if(TutTime[i] == 76) { SendClientMessage(i, COLOR_YELLOW2, "First of all I like to start with Admins, respect Admins in any way."); SendClientMessage(i, COLOR_YELLOW2, "We are all trying to keep everyony satisfied and trying to help everyone in anyway possible."); SendClientMessage(i, COLOR_YELLOW2, "Secondly, don't curse / shout / swear at other players, this will end you up muted / banned."); SendClientMessage(i, COLOR_YELLOW2, "Just treat people with respect, just like you want to be respected."); } else if(TutTime[i] == 96) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Drive-by ____|"); } else if(TutTime[i] == 98) { SendClientMessage(i, COLOR_YELLOW2, "We don't allow Drive-by's on this server, since it's lame and simple to kill."); SendClientMessage(i, COLOR_YELLOW2, "And it's deathmatching, which we definately don't allow."); SendClientMessage(i, COLOR_YELLOW2, "Don't do this if you don't want yourself to get banned."); } else if(TutTime[i] == 108) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Language & Advertising ____|"); } else if(TutTime[i] == 110) { SendClientMessage(i, COLOR_YELLOW2, "We'd like you to use English in any chat."); SendClientMessage(i, COLOR_YELLOW2, "If you want to talk with someone in your own Language, use the /w or /sms commands"); SendClientMessage(i, COLOR_YELLOW2, "Advertising is not allowed aswell, advertising will get you banned aswell."); } else if(TutTime[i] == 119) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: The End ____|"); } else if(TutTime[i] == 121) { SendClientMessage(i, COLOR_YELLOW2, "So that was it, probably obvious but we still want you to remember our rules."); SendClientMessage(i, COLOR_YELLOW2, "Just keep reminding them and have fun!"); SendClientMessage(i, COLOR_YELLOW2, "Greetings from: Role Play - The Godfather Admin Team."); } else if(TutTime[i] == 127) { TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; TogglePlayerControllable(i, 1); MedicBill[i] = 0; SetPlayerSpawn(i); }[/pwn]
Вот в стандартном ГФ этот код впихнут в середину [color=blue]public[/blue] SetPlayerUnjail(), а точнее, после вот этих строчек [pwn] if(WantLawyer[i] == 20) { SendClientMessage(i, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started."); WantLawyer[i] = 0; CallLawyer[i] = 0; }[/pwn]
спс.а как сделать чтобы в течении определеннего времени незарегаешся ил ине авторизируешся чтобы кикало?
Добавлено (29.07.2009, 15:08) --------------------------------------------- хотел сделать но выдает знаменытые 26 ошибок.Что Подскажите за ++ [pwn] if(strcmp(cmd, "/obuch", true) == 0) { if(IsPlayerConnected(playerid)) { if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) { SendClientMessage(i, COLOR_YELLOW2, "|____ Tutorial: The beginning ____|"); SendClientMessage(i, COLOR_YELLOW2, "Hi there, i can see that you are new, so here's a quick Tutorial."); SendClientMessage(i, COLOR_YELLOW2, "Every new players needs to know what he / she, can and can't do."); SendClientMessage(i, COLOR_YELLOW2, "I will give your quiet some information, so please pay attention to avoid questions later on."); } else if(TutTime[i] == 14) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Kind of server ____|"); } else if(TutTime[i] == 16) { SendClientMessage(i, COLOR_YELLOW2, "This server is a RP server which stands for Role Playing."); SendClientMessage(i, COLOR_YELLOW2, "We are absolutely not interested in players that just come along and Deathmatch."); SendClientMessage(i, COLOR_YELLOW2, "The name you have also matters alot, other players are getting used to your chosen name"); SendClientMessage(i, COLOR_YELLOW2, "so it's better to have a name like for example: Oliver_Wood."); SendClientMessage(i, COLOR_YELLOW2, "If you want to know more about how to RP, visit our forums and search for the topic."); SendClientMessage(i, COLOR_YELLOW2, "(You can find the forum on our webpage: http://www.godfather-rp.com "); } else if(TutTime[i] == 30) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Requesting Help ____|"); } else if(TutTime[i] == 32) { SendClientMessage(i, COLOR_YELLOW2, "If you are confused and would like to know some more information when you are ingame"); SendClientMessage(i, COLOR_YELLOW2, "simply just ask any Player or an Admin (/admins) in a common way."); SendClientMessage(i, COLOR_YELLOW2, "Just use common lines like: Hi, could you help me a sec please?"); SendClientMessage(i, COLOR_YELLOW2, "Don't start to shout or curse at someone, because it will only make you look worse.."); SendClientMessage(i, COLOR_YELLOW2, "And you might end up banned, which you want to skip of course."); SendClientMessage(i, COLOR_YELLOW2, "Use the commands /o (OOC) /w (Whisper) /sms (If you have the Phone Number) to talk to someone."); } else if(TutTime[i] == 52) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Cheating & Abusing ____|"); } else if(TutTime[i] == 54) { SendClientMessage(i, COLOR_YELLOW2, "We wish that n0beit was never made and we certainly don't allow players to use it."); SendClientMessage(i, COLOR_YELLOW2, "Thats why we don't want YOU to cheat, or allow other players to cheat."); SendClientMessage(i, COLOR_YELLOW2, "If you see someone cheating, please report it with /report right away."); SendClientMessage(i, COLOR_YELLOW2, "Bug abusing, or in any other way stuff abusing is just as bad as Cheating."); SendClientMessage(i, COLOR_YELLOW2, "So we don't want YOU to abuse aswell, simply use the /report as well if you see"); SendClientMessage(i, COLOR_YELLOW2, "someone abusing something."); } else if(TutTime[i] == 74) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Respect ____|"); } else if(TutTime[i] == 76) { SendClientMessage(i, COLOR_YELLOW2, "First of all I like to start with Admins, respect Admins in any way."); SendClientMessage(i, COLOR_YELLOW2, "We are all trying to keep everyony satisfied and trying to help everyone in anyway possible."); SendClientMessage(i, COLOR_YELLOW2, "Secondly, don't curse / shout / swear at other players, this will end you up muted / banned."); SendClientMessage(i, COLOR_YELLOW2, "Just treat people with respect, just like you want to be respected."); } else if(TutTime[i] == 96) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Drive-by ____|"); } else if(TutTime[i] == 98) { SendClientMessage(i, COLOR_YELLOW2, "We don't allow Drive-by's on this server, since it's lame and simple to kill."); SendClientMessage(i, COLOR_YELLOW2, "And it's deathmatching, which we definately don't allow."); SendClientMessage(i, COLOR_YELLOW2, "Don't do this if you don't want yourself to get banned."); } else if(TutTime[i] == 108) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: Language & Advertising ____|"); } else if(TutTime[i] == 110) { SendClientMessage(i, COLOR_YELLOW2, "We'd like you to use English in any chat."); SendClientMessage(i, COLOR_YELLOW2, "If you want to talk with someone in your own Language, use the /w or /sms commands"); SendClientMessage(i, COLOR_YELLOW2, "Advertising is not allowed aswell, advertising will get you banned aswell."); } else if(TutTime[i] == 119) { SendClientMessage(i, COLOR_YELLOW, "|____ Tutorial: The End ____|"); } else if(TutTime[i] == 121) { SendClientMessage(i, COLOR_YELLOW2, "So that was it, probably obvious but we still want you to remember our rules."); SendClientMessage(i, COLOR_YELLOW2, "Just keep reminding them and have fun!"); SendClientMessage(i, COLOR_YELLOW2, "Greetings from: Role Play - The Godfather Admin Team."); } else if(TutTime[i] == 127) { TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; MedicBill[i] = 0; SetPlayerSpawn(i); } return 1; } [/pwn]
Дальше в public CustomPickups() Добавляешь вот это [pwn]else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1174.3197,1351.0402,10.9219)) { GameTextForPlayer(i, "~g~ƒO€PO ŒO„A‡O‹A’,/pdd O€‘ ŒPO…A’ ŒPAB…‡A Œƒƒ", 5000, 3); }[/pwn] И добавляешь пикап [pwn]AddStaticPickup(1239, 2, 1174.3197,1351.0402,10.9219); //ПДД[/pwn]
Координаты поменяешь точки от куда можно прочитать /pdd и всё
Пишу скрипты,дорабатываю РП моды на заказ,не дорого - 607-559-798
[rsr]John, токо вот лучше делать пикап не в public CustomPickups() а в OnPlayerPickUpPickup в new'ы: new pddpickup; добавляем пикап в OnGameModeInit: pddpickup = CreatePickup(1239, 2, 1174.3197,1351.0402,10.9219); //ПДД в OnPlayerPickUpPickup: if(picupid == pddpickup) { if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) GameTextForPlayer(i, "Text", 5000, 3); }