// add this to the forwards forward IO1(playerid); forward IO2(playerid); forward IO3(playerid); forward IO4(playerid); forward IO5(playerid); forward IO6(playerid); forward IO7(playerid); // PUBLICS public IO1(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________"); SendClientMessage(playerid, COLOR_YELLOW, "Let me start off by saying that there is no such thing as"); SendClientMessage(playerid, COLOR_YELLOW, "no-risk driving. Whenever you are behind the wheel, there is"); SendClientMessage(playerid, COLOR_YELLOW, "always a risk. At the DMV, we try to make driving as"); SendClientMessage(playerid, COLOR_YELLOW, "possible by teaching low-risk driving principles."); } public IO2(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________"); SendClientMessage(playerid, COLOR_LIGHTRED, "|__Next topic: Speed Management__|"); SendClientMessage(playerid, COLOR_YELLOW, "Speed Management is important, as speeding can lead to loss of"); SendClientMessage(playerid, COLOR_YELLOW, "steering and possible loss of life or limb. It greatly increases"); SendClientMessage(playerid, COLOR_YELLOW, "the risk of a car crash. It is important to go a speed that suites"); SendClientMessage(playerid, COLOR_YELLOW, "the conditions. Not too fast, not too slow."); } public IO3(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________"); SendClientMessage(playerid, COLOR_YELLOW, "It is also very important not to talk on the phone or SMS while"); SendClientMessage(playerid, COLOR_YELLOW, "driving as it will greatly increase the chance of you having a"); SendClientMessage(playerid, COLOR_YELLOW, "crash. Please pull over if you want to speak on the phone or SMS."); } public IO4(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________"); SendClientMessage(playerid, COLOR_LIGHTRED, "|__Next topic: Street signs__|"); SendClientMessage(playerid, COLOR_YELLOW, "A white line painted on the road next to a curb means no"); SendClientMessage(playerid, COLOR_YELLOW, "parking at any time, clearway restrictions apply. It also"); SendClientMessage(playerid, COLOR_YELLOW, "means no stopping unless medical emergency. You are permitted"); SendClientMessage(playerid, COLOR_YELLOW, "to stop here if an officer pulls you over."); } public IO5(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________"); SendClientMessage(playerid, COLOR_LIGHTRED, "|__Final topic: Road Rules__|"); SendClientMessage(playerid, COLOR_YELLOW, "When on a four lane road (2-lanes going either way) you are"); SendClientMessage(playerid, COLOR_YELLOW, "only allowed to be in the left lane when overtaking another"); SendClientMessage(playerid, COLOR_YELLOW, "vehicle or when turning left within 300 feet. It is a criminal"); SendClientMessage(playerid, COLOR_YELLOW, "offense to be in this lane at any other time."); } public IO6(playerid) { SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________"); SendClientMessage(playerid, COLOR_YELLOW, "End of the Information outline. Any questions?"); SendClientMessage(playerid, COLOR_YELLOW, "Ask the instructor."); } public IO7(playerid) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "The costumer has finished reading the course"); } // ADD IT WITH OTHER COMANDS LIKE /showlicense and stuff if(strcmp(cmd,"/givecourse",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecourse [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot give the Information Outline Course to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "*Instructor %s Gives %s a paper to read", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, sizeof(string), "* You have given The Information Outline Course to %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You have receved The Information Outline Course from %s.", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|__The Information Outline Course__|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "Welcome to the Information Outline course. In this course you"); SendClientMessage(giveplayerid, COLOR_YELLOW, "will learn about the things that will be tested later on."); SetTimerEx("IO1", 10000, 0, "d", giveplayerid); SetTimerEx("IO2", 40000, 0, "d", giveplayerid); SetTimerEx("IO3", 70000, 0, "d", giveplayerid); SetTimerEx("IO4", 90000, 0, "d", giveplayerid); SetTimerEx("IO5", 120000, 0, "d", giveplayerid); SetTimerEx("IO6", 145000, 0, "d", giveplayerid); SetTimerEx("IO7", 146000, 0, "d", playerid); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/dquestion1",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dquestion1 [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s Question 1 of the driving test, wait his whisper", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answer: 1", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Questions 1____________________|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "There is no such thing as no-risk driving."); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: True"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: False"); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/dquestion2",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dquestion2 [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s Question 2 of the driving test, wait his whisper", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answer: 2", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Questions 2____________________|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "Speed management is important because which of the following?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: Speed management is not important"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: Speeding can cause loss of steering, life or limb"); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: Speeding can cause negative self-esteem"); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: Speeding can cause cancer."); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/dquestion3",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dquestion3 [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s Question 3 of the driving test, wait his whisper", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answer: 3", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Questions 3____________________|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "Why is talking on the phone or SMSing while driving is dangerous?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: SMSing while driving can cause sore thumbs"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: Talking on the phone while driving can cause reception"); SendClientMessage(giveplayerid, COLOR_YELLOW, "breakup or static in the phone call."); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: Talking on the phone or SMS while driving causes increased"); SendClientMessage(giveplayerid, COLOR_YELLOW, "risk of having a car crash."); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: It isn't dangerous."); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/dquestion4",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dquestion4 [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s Question 4 of the driving test, wait his whisper", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answer: 2,3", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Questions 4____________________|"); SendClientMessage(giveplayerid, COLOR_LIGHTRED, " Chose 2 answers"); SendClientMessage(giveplayerid, COLOR_YELLOW, "A white line painted next to a curb means what?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: No right turn"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: No parking at any time, clearway restrictions apply"); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: No stopping unless medical emergency"); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: It doesn't mean anything."); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/dquestion5",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dquestion5 [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s Question 5 of the driving test, wait his whisper", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answer: 1,4", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Questions 5____________________|"); SendClientMessage(giveplayerid, COLOR_LIGHTRED, " Chose 2 answers."); SendClientMessage(giveplayerid, COLOR_YELLOW, "When on a four lane road (2-lanes going either way), when are you"); SendClientMessage(giveplayerid, COLOR_YELLOW, "allowed to be in the left lane?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: When turning left within 300 feet (100 meters)"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: When within 500 feet of a hospital"); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: Whenever you want. There is no rule regarding this."); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: When overtaking another vehicle."); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/weapontest",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /weapontest [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s The weapon test, wait his whisper with the answers", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answers:", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 1: No", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 2: No", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 3: Eagle, Country rifle", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 4: Any illigal weapons like: m4,mp5,AK47,Sniper", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answers, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Weapon Test____________________|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: If you have a Weapons Permit, does that grant you the right to expose your weapon in Public?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: Are fully automatic Weapons Legal?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: What Firearms does the Permit grant you to legally own?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: Please Name two Illegal Weapons."); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/sailingtest",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sailingtest [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s The sailing test, wait his whisper with the answers", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answers:", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 1: Left", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 2: 3 times", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 3: Pull over, Stop the boat, and get out of the control room.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 4: $1,000 - $10,000", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Sailing Test____________________|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: When passing another boat, do you pass on the left or right side?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: If it's a foggy day how many times do you blow your fog horn?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: If a government vessel is flashing it's lights and is behind you, what do you do?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: What is the fine for spilling gasoline into the water?"); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; } if(strcmp(cmd,"/flyingtest",true)==0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /flyingtest [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot the test to your self!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have given %s The flying test, wait his whisper with the answers", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Answers:", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 1: 1 mile.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 2: Gear up", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 3: Try to land or wear the parachut and jump.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* 4: No", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Whisper %s the answer, Dont say it in public!", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|____________________Flying Test____________________|"); SendClientMessage(giveplayerid, COLOR_YELLOW, "1: What is the lowest distance you can fly above the ground(Miles)?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "2: What should you do exactly after take off?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "3: What should you do if the engine broke while you are flying?"); SendClientMessage(giveplayerid, COLOR_YELLOW, "4: Is it legal to fly the plane upside down, and do sudden movements?"); SendClientMessage(giveplayerid, COLOR_LIGHTRED, "|___________________________________________________|"); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a License Instructor !"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; }