Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- new giver[MAX_PLAYER_NAME];
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new tmp[128];
- new string[156];
- new giveplayerid;
- new y,m,d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
- return 0;
- }
- if(text[0] == '#' && PlayerInfo[playerid][pAdmin] >= 1)
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- new arank[24];
- if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Moderator"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Global Moderator"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Administrator"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Main Admin"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Developer"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "Scripter"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Owner"; } // By DJLover
- else { arank = "Unknown"; }
- format(string, sizeof(string), "[%s] %s (%d): %s", arank, sendername, playerid, text[1]);
- SendAdminMessage(COLOR_LIGHTRED, string);
- printf("%s %s: %s",arank, sendername, text[1]);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s %s: %s",arank,d,m,y,h,mi,s,sendername, text[1]);
- AdminChatLog(string);
- return 0;
- }
- if(text[0] == '@' && (PlayerInfo[playerid][pVip] >= 1 || PlayerInfo[playerid][pAdmin] >= 1))
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- new arank[24];
- if(PlayerInfo[playerid][pVip] == 1) { arank = "Trial Vip"; } // By DJLover
- else if(PlayerInfo[playerid][pVip] == 2) { arank = "Vip"; } // By DJLover
- else if(PlayerInfo[playerid][pVip] == 3) { arank = "Lead Vip"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Moderator"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Global Moderator"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Administrator"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Main Admin"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Developer"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "Scripter"; } // By DJLover
- else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Owner"; } // By DJLover
- else { arank = "Unknown"; }
- format(string, sizeof(string), "[%s] %s (%d): %s", arank, sendername, playerid, text[1]);
- SendVipAdminMessage(COLOR_YELLOW, string);
- printf("%s %s: %s",arank, sendername, text[1]);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s %s: %s",arank,d,m,y,h,mi,s,sendername, text[1]);
- AdminChatLog(string);
- return 0;
- }
- if(PlayerInfo[playerid][pAdmin] == 0) Text[playerid] ++;
- if(Text[playerid] >= 1)
- {
- KillTimer(TextTimer[playerid]);
- TextTimer[playerid] = SetTimerEx("ResetText",1500,false,"i",playerid);
- }
- if(Text[playerid] == 5) SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Slow it down or you will be kicked!");
- if(Text[playerid] == 10)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s (%d), Has been kicked by The Anticheat Peter Griffin for Flooding the chat.", sendername, playerid);
- SendClientMessageToAll(COLOR_NICERED, string);
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have been Kicked by The Anticheat For Flooding the chat.");
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Flooding the chat.",d,m,y,h,mi,s,sendername);
- KickLog(string);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kicked by the Anticheat - Flooding the chat.",d,m,y,h,mi,s,sendername);
- AddPunishment(playerid, string);
- Kick(playerid);
- KillTimer(TextTimer[playerid]);
- }
- if(OnOfficerTest[playerid] == 1)
- {
- if(TestStep[playerid] == 1)
- {
- if(strcmp(text, "c", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 2;
- SendClientMessage(playerid, COLOR_YELLOW,"2 - What does 'In Character (IC)' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must Roleplay what i am.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 1;
- SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 2)
- {
- if(strcmp(text, "c", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 3;
- SendClientMessage(playerid, COLOR_YELLOW,"3 - What does 'Out of Character (OOC)' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The place where i can kill everyone and then quit the server.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can abuse my commands and force the roleplay on others.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i can hack money and give it away for free.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i can beg for admin status then abusing it.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i can act like myself and not my character.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 2;
- SendClientMessage(playerid, COLOR_YELLOW,"2 - What does 'In Character (IC)' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must Roleplay what i am.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 3)
- {
- if(strcmp(text, "e", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 4;
- SendClientMessage(playerid, COLOR_YELLOW,"4 - What are my tasks as a security guard?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Kill everyone and then quit the server and never come back.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Issue Tickets and arrest minor wanted suspects.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Use my helicopter to steal an hydra from Liberty City.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Use my car to car kill everyone on the server.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Use my uniform to smoke drugs so i can't get suspected.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 3;
- SendClientMessage(playerid, COLOR_YELLOW,"3 - What does 'Out of Character (OOC)' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The place where i can kill everyone and then quit the server.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can abuse my commands and force the roleplay on others.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i can hack money and give it away for free.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i can beg for admin status then abusing it.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i can act like myself and not my character.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 4)
- {
- if(strcmp(text, "b", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 5;
- SendClientMessage(playerid, COLOR_YELLOW,"5 - What should i do once i cuffed a suspect?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Abandon him in the middle of the ocean or the desert.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Kill him and steal his wallet so i can buy drugs.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Abuse my commands to take his stuff and then kill him.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Read his rights and Take him to the LSPD for processing.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Take him to the prison and jail him for 9999999 hours.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 4;
- SendClientMessage(playerid, COLOR_YELLOW,"4 - What are my tasks as a security guard?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Kill everyone and then quit the server and never come back.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Issue Tickets and arrest minor wanted suspects.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Use my helicopter to steal an hydra from Liberty City.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Use my car to car kill everyone on the server.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Use my uniform to smoke drugs so i can't get suspected.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 5)
- {
- if(strcmp(text, "d", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 6;
- SendClientMessage(playerid, COLOR_YELLOW,"6 - Where is the LSPD placed on?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Commerce, Los Santos.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Pershing Square, Los Santos.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Creek, Las Venturas.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Queens, San Fierro.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Roca Escalante, Las Venturas.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 5;
- SendClientMessage(playerid, COLOR_YELLOW,"5 - What should i do once i cuffed a suspect?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Abandon him in the middle of the ocean or the desert.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Kill him and steal his wallet so i can buy drugs.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Abuse my commands to take his stuff and then kill him.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Read his rights and Take him to the LSPD for processing.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Take him to the prison and jail him for 9999999 hours.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 6)
- {
- if(strcmp(text, "b", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 7;
- SendClientMessage(playerid, COLOR_YELLOW,"7 - What should i do when i get shoot?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Insult the attacker and spam /report.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Take my weapon and shoot back if i can.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Hack a minigun and kill him.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Call for a hunter via /departments.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Use /ad and ask for help in Caps.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 6;
- SendClientMessage(playerid, COLOR_YELLOW,"6 - Where is the LSPD placed on?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Commerce, Los Santos.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Pershing Square, Los Santos.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Creek, Las Venturas.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Queens, San Fierro.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Roca Escalante, Las Venturas.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 7)
- {
- if(strcmp(text, "b", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 8;
- SendClientMessage(playerid, COLOR_YELLOW,"8 - What will happen to me if i am corrupt?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. I will receive 56487 golden medals for that.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. I will win much much money helping gangsters.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. I will get suspended from active duty.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. I will lose my house and my bed.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. I will be given with a minigun so i can kill everyone.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 7;
- SendClientMessage(playerid, COLOR_YELLOW,"7 - What should i do when i get shoot?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Insult the attacker and spam /report.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Take my weapon and shoot back if i can.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Hack a minigun and kill him.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Call for a hunter via /departments.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Use /ad and ask for help in Caps.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 8)
- {
- if(strcmp(text, "c", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 9;
- SendClientMessage(playerid, COLOR_YELLOW,"9 - What should i do when rushing a house?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad and tell the suspect that we're going in so he can escape.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. PM the suspect and advise about the Cops arriving so he can escape.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Enter with hacked grenades and throw them all over the house.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Act like rambo, enter the property and try to kill the suspects without help.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Stay calm, follow your leader's orders and work as a team with the others.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 8;
- SendClientMessage(playerid, COLOR_YELLOW,"8 - What will happen to me if i am corrupt?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. I will receive 56487 golden medals for that.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. I will win much much money helping gangsters.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. I will get suspended from active duty.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. I will lose my house and my bed.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. I will be given with a minigun so i can kill everyone.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 9)
- {
- if(strcmp(text, "e", true) == 0)
- {
- TestPoints[playerid] ++;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW,"10 - Can i work privately as someone's security guard?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Yes i can, i am the law and i command myself however i want.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. No i can't, thats the work of the bodyguards, not mine's.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Yes i can, but if my dog is the one that i have to protect.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Yes i can, as long i get authorization from an officer or above.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Yes i can, only if i get paid more than 5000$ and some drugs.");
- return 0;
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 9;
- SendClientMessage(playerid, COLOR_YELLOW,"9 - What should i do when rushing a house?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad and tell the suspect that we're going in so he can escape.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. PM the suspect and advise about the Cops arriving so he can escape.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Enter with hacked grenades and throw them all over the house.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Act like rambo, enter the property and try to kill the suspects without help.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Stay calm, follow your leader's orders and work as a team with the others.");
- return 0;
- }
- }
- else if(TestStep[playerid] == 10)
- {
- if(strcmp(text, "d", true) == 0)
- {
- TestPoints[playerid] ++;
- SafeGivePlayerMoney(playerid, -5000);
- if(TestPoints[playerid] >= 9)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREEN,"You have passed your test, you can now be a security guard!");
- SendClientMessage(playerid, COLOR_WHITE,"Go to the LSPD, open the door with MMB (LOOK BEHIND) and type /duty at the DUTY POINT");
- PlayerInfo[playerid][pCopLic] = 1;
- OnOfficerTest[playerid] = 0;
- TestPoints[playerid] = 0;
- return 0;
- }
- else
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREEN,"You have failed your test, you must wait 5 hours to re-do the test");
- format(string, sizeof(string),"Your Score was %d, And you need atleast 9 (out of 10) to Pass",TestPoints[playerid]);
- SendClientMessage(playerid, COLOR_GREY, string);
- PlayerInfo[playerid][pOfficerTime] = 18000;
- OnOfficerTest[playerid] = 0;
- TestPoints[playerid] = 0;
- return 0;
- }
- }
- else
- {
- TestPoints[playerid] --;
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW,"10 - What should i do when rushing a house?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad and tell the suspect that we're going in so he can escape.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. PM the suspect and advise about the Cops arriving so he can escape.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Enter with hacked grenades and throw them all over the house.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Act like rambo, enter the property and try to kill the suspects without help.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Stay calm, follow your leader's orders and work as a team with the others.");
- return 0;
- }
- }
- }
- if(OnPassportTest[playerid] == 1)
- {
- if(TestStep[playerid] == 1)
- {
- if(strcmp(text, "c", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 2;
- SendClientMessage(playerid, COLOR_YELLOW,"2 - What does 'In Character (IC)' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must Roleplay what i am.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 2)
- {
- if(strcmp(text, "c", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 3;
- SendClientMessage(playerid, COLOR_YELLOW,"3 - What does 'Out of Character (OOC)' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The place where i can kill everyone and then quit the server.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can abuse my commands and force the roleplay on others.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i can hack money and give it away for free.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i can beg for admin status then abusing it.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i can act like myself and not my character.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 3)
- {
- if(strcmp(text, "e", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 4;
- SendClientMessage(playerid, COLOR_YELLOW,"4 - What does 'Powergaming' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. That i can kill anyone without a reason.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. That i force the roleplay on other people.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. That i can use my helicopter to kill anyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. That i can drive by on my car and kill everyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. That i can hack and fly around san andreas.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 4)
- {
- if(strcmp(text, "b", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 5;
- SendClientMessage(playerid, COLOR_YELLOW,"5 - What does 'Metagaming' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The use of a car to kill everyone with it.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The use of hacks and abusing the possible script bugs.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The use of guns to kill anyone without a reason.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The use of Out of Character information at In Character.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The use of commands to force the rolepaly on someone else.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 5)
- {
- if(strcmp(text, "d", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 6;
- SendClientMessage(playerid, COLOR_YELLOW,"6 - Where is the LSPD placed on?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Commerce, Los Santos.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Pershing Square, Los Santos.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Creek, Las Venturas.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Queens, San Fierro.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Roca Escalante, Las Venturas.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 6)
- {
- if(strcmp(text, "b", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 7;
- SendClientMessage(playerid, COLOR_YELLOW,"7 - What should i do when i get shoot?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Run in circles and beat the attacker.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Act scared like in real life.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Take a gun out of your ass and shoot him.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Take cover on a wall and PM a cop to save you.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Use /ad and ask for help in Caps.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 7)
- {
- if(strcmp(text, "b", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 8;
- SendClientMessage(playerid, COLOR_YELLOW,"8 - What should i do when an admin tells me something?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Ignore him and keep playing");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Quit and never come back.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Do what he says and stay calm.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Spam his pm's with insults then Quit.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Hack and kill him with a minigun.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 8)
- {
- if(strcmp(text, "c", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 9;
- SendClientMessage(playerid, COLOR_YELLOW,"9 - What should i do when an admins punishes my friend?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad to moan about the punishment with caps.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. PM the admin and moan about the punishment.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Spam /atalk to moan about the punishment.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Report him at the forums for abuser.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Stay Calm, with the mouth shut, You can't comment on punishments.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 9)
- {
- if(strcmp(text, "e", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW,"10 - What should i do if a hacker gives me hacked money?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. Keep the money, use it to buy nice things such lots of weapons.");
- SendClientMessage(playerid, COLOR_YELLOW,"b. Give the money back, and ignore him without telling admins.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. Use /charity with the money and never mention nothing about the hacker.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. Give to any admin the money and report the hacker.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. Quit, and come back in a few hours and waste the money.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- else if(TestStep[playerid] == 10)
- {
- if(strcmp(text, "d", true) == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 0;
- SendClientMessage(playerid, COLOR_GREEN,"You have passed your test, you're now a Legal Citizen!");
- PlayerInfo[playerid][pPassport] = 1;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
- PlayerInfo[playerid][pPassportTime] = 21600;
- OnPassportTest[playerid] = 0;
- TestStep[playerid] = 0;
- return 0;
- }
- }
- }
- if(SelectChar[playerid] == 255)
- {
- new idx;
- tmp = strtok(text, idx);
- if ((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
- {
- switch (SelectCharID[playerid])
- {
- case 1: //Police Force
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
- else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
- else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9][0]; }
- else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
- }
- case 2: //FBI/ATF
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[13][0]; }
- }
- case 3: //National Guard
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[14][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[15][0]; }
- }
- case 4: //Fire&Ambulance
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[16][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[17][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[18][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[19][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[20][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[20][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[21][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[22][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[22][0]; }
- }
- case 5: //Surenos
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[25][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[26][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[27][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[28][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[29][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[30][0]; }
- }
- case 6: //Le Signatra
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[31][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[32][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[33][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[34][0]; }
- }
- case 8: //Hitman Agency
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[38][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[39][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[39][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[40][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[41][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[41][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[42][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[42][0]; }
- }
- case 9: //News Reporters
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[43][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[44][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[44][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[45][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[45][0]; }
- }
- case 10: //Taxi Cab Company
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[46][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[47][0]; }
- }
- case 11: //Driving/Flying School
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
- }
- case 14: //Yakuza
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 122); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 122; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 118); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 118; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 186); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 186; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 123); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 123; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 113); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = 113; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 169); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 169; }
- }
- case 15: //Chornaya Bratva
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[58][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[59][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[60][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[61][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[62][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[63][0]; }
- }
- case 16: //La Vice
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 28); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 28; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 67); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 67; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 22); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 22; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 180); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 180; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 144); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 144; }
- }
- case 17: //TovCar
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 50); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 50; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 50); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 50; }
- }
- case 20: //Male civilian (by Ellis)
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivMalePeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivMalePeds[1][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivMalePeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivMalePeds[2][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivMalePeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivMalePeds[3][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivMalePeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivMalePeds[4][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivMalePeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivMalePeds[5][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivMalePeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivMalePeds[6][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivMalePeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivMalePeds[7][0]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivMalePeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivMalePeds[8][0]; }
- else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivMalePeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivMalePeds[9][0]; }
- else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivMalePeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivMalePeds[10][0]; }
- else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivMalePeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivMalePeds[11][0]; }
- else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivMalePeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivMalePeds[12][0]; }
- else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivMalePeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivMalePeds[13][0]; }
- else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivMalePeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivMalePeds[14][0]; }
- else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivMalePeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivMalePeds[15][0]; }
- else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivMalePeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivMalePeds[16][0]; }
- else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivMalePeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivMalePeds[17][0]; }
- else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivMalePeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivMalePeds[18][0]; }
- else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivMalePeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivMalePeds[19][0]; }
- else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivMalePeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivMalePeds[20][0]; }
- else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivMalePeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivMalePeds[21][0]; }
- else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivMalePeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivMalePeds[22][0]; }
- else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivMalePeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivMalePeds[23][0]; }
- else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivMalePeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivMalePeds[24][0]; }
- else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivMalePeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivMalePeds[25][0]; }
- else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivMalePeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivMalePeds[26][0]; }
- else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivMalePeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivMalePeds[27][0]; }
- else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivMalePeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivMalePeds[28][0]; }
- else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivMalePeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivMalePeds[29][0]; }
- else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivMalePeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivMalePeds[30][0]; }
- else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivMalePeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivMalePeds[31][0]; }
- else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivMalePeds[32][0]); SelectCharPlace[playerid] = 33; ChosenSkin[playerid] = CivMalePeds[32][0]; }
- else if(SelectCharPlace[playerid] == 33) { SetPlayerSkin(playerid, CivMalePeds[33][0]); SelectCharPlace[playerid] = 34; ChosenSkin[playerid] = CivMalePeds[33][0]; }
- else if(SelectCharPlace[playerid] == 34) { SetPlayerSkin(playerid, CivMalePeds[34][0]); SelectCharPlace[playerid] = 35; ChosenSkin[playerid] = CivMalePeds[34][0]; }
- else if(SelectCharPlace[playerid] == 35) { SetPlayerSkin(playerid, CivMalePeds[35][0]); SelectCharPlace[playerid] = 36; ChosenSkin[playerid] = CivMalePeds[35][0]; }
- else if(SelectCharPlace[playerid] == 36) { SetPlayerSkin(playerid, CivMalePeds[36][0]); SelectCharPlace[playerid] = 37; ChosenSkin[playerid] = CivMalePeds[36][0]; }
- else if(SelectCharPlace[playerid] == 37) { SetPlayerSkin(playerid, CivMalePeds[37][0]); SelectCharPlace[playerid] = 38; ChosenSkin[playerid] = CivMalePeds[37][0]; }
- else if(SelectCharPlace[playerid] == 38) { SetPlayerSkin(playerid, CivMalePeds[38][0]); SelectCharPlace[playerid] = 39; ChosenSkin[playerid] = CivMalePeds[38][0]; }
- else if(SelectCharPlace[playerid] == 39) { SetPlayerSkin(playerid, CivMalePeds[39][0]); SelectCharPlace[playerid] = 40; ChosenSkin[playerid] = CivMalePeds[39][0]; }
- else if(SelectCharPlace[playerid] == 40) { SetPlayerSkin(playerid, CivMalePeds[40][0]); SelectCharPlace[playerid] = 41; ChosenSkin[playerid] = CivMalePeds[40][0]; }
- else if(SelectCharPlace[playerid] == 41) { SetPlayerSkin(playerid, CivMalePeds[41][0]); SelectCharPlace[playerid] = 42; ChosenSkin[playerid] = CivMalePeds[41][0]; }
- else if(SelectCharPlace[playerid] == 42) { SetPlayerSkin(playerid, CivMalePeds[42][0]); SelectCharPlace[playerid] = 43; ChosenSkin[playerid] = CivMalePeds[42][0]; }
- else if(SelectCharPlace[playerid] == 43) { SetPlayerSkin(playerid, CivMalePeds[43][0]); SelectCharPlace[playerid] = 44; ChosenSkin[playerid] = CivMalePeds[43][0]; }
- else if(SelectCharPlace[playerid] == 44) { SetPlayerSkin(playerid, CivMalePeds[44][0]); SelectCharPlace[playerid] = 45; ChosenSkin[playerid] = CivMalePeds[44][0]; }
- else if(SelectCharPlace[playerid] == 45) { SetPlayerSkin(playerid, CivMalePeds[45][0]); SelectCharPlace[playerid] = 46; ChosenSkin[playerid] = CivMalePeds[45][0]; }
- else if(SelectCharPlace[playerid] == 46) { SetPlayerSkin(playerid, CivMalePeds[46][0]); SelectCharPlace[playerid] = 47; ChosenSkin[playerid] = CivMalePeds[46][0]; }
- else if(SelectCharPlace[playerid] == 47) { SetPlayerSkin(playerid, CivMalePeds[47][0]); SelectCharPlace[playerid] = 48; ChosenSkin[playerid] = CivMalePeds[47][0]; }
- else if(SelectCharPlace[playerid] == 48) { SetPlayerSkin(playerid, CivMalePeds[48][0]); SelectCharPlace[playerid] = 49; ChosenSkin[playerid] = CivMalePeds[48][0]; }
- else if(SelectCharPlace[playerid] == 49) { SetPlayerSkin(playerid, CivMalePeds[49][0]); SelectCharPlace[playerid] = 50; ChosenSkin[playerid] = CivMalePeds[49][0]; }
- else if(SelectCharPlace[playerid] == 50) { SetPlayerSkin(playerid, CivMalePeds[50][0]); SelectCharPlace[playerid] = 51; ChosenSkin[playerid] = CivMalePeds[50][0]; }
- else if(SelectCharPlace[playerid] == 51) { SetPlayerSkin(playerid, CivMalePeds[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivMalePeds[51][0]; }
- }
- case 30: //Female civilian (by Ellis)
- {
- if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivFemalePeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivFemalePeds[1][0]; }
- else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivFemalePeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivFemalePeds[2][0]; }
- else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivFemalePeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivFemalePeds[3][0]; }
- else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivFemalePeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivFemalePeds[4][0]; }
- else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivFemalePeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivFemalePeds[5][0]; }
- else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivFemalePeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivFemalePeds[6][0]; }
- else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivFemalePeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivFemalePeds[7][0]; }
- else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivFemalePeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivFemalePeds[8][0]; }
- else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivFemalePeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivFemalePeds[9][0]; }
- else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivFemalePeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivFemalePeds[10][0]; }
- else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivFemalePeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivFemalePeds[11][0]; }
- else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivFemalePeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivFemalePeds[12][0]; }
- else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivFemalePeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivFemalePeds[13][0]; }
- else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivFemalePeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivFemalePeds[14][0]; }
- else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivFemalePeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivFemalePeds[15][0]; }
- else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivFemalePeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivFemalePeds[16][0]; }
- else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivFemalePeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivFemalePeds[17][0]; }
- else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivFemalePeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivFemalePeds[18][0]; }
- else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivFemalePeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivFemalePeds[19][0]; }
- else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivFemalePeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivFemalePeds[20][0]; }
- else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivFemalePeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivFemalePeds[21][0]; }
- else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivFemalePeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivFemalePeds[22][0]; }
- else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivFemalePeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivFemalePeds[23][0]; }
- else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivFemalePeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivFemalePeds[24][0]; }
- else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivFemalePeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivFemalePeds[25][0]; }
- else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivFemalePeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivFemalePeds[26][0]; }
- else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivFemalePeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivFemalePeds[27][0]; }
- else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivFemalePeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivFemalePeds[28][0]; }
- else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivFemalePeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivFemalePeds[29][0]; }
- else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivFemalePeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivFemalePeds[30][0]; }
- else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivFemalePeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivFemalePeds[31][0]; }
- else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivFemalePeds[32][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivFemalePeds[32][0]; }
- }
- }
- return 0;
- }
- else if ((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
- {
- if(ChangePos2[playerid][1] == 1)
- {
- SafeSetPlayerInterior(playerid, ChangePos2[playerid][0]);
- SafeSetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
- ChangePos2[playerid][1] = 0;
- //return 0;
- }
- PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
- PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
- SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
- gTeam[playerid] = PlayerInfo[playerid][pTeam];
- SetPlayerToTeamColor(playerid);
- MedicBill[playerid] = 0;
- SetPlayerSpawn(playerid);
- SetCameraBehindPlayer(playerid);
- SelectCharPlace[playerid] = 0;
- SelectCharID[playerid] = 0;
- SelectChar[playerid] = 0;
- SetTimerEx("backtoclothes", 500, false, "i", playerid);
- TogglePlayerControllable(playerid, 1);
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "* Use 'next', or 'done'.");
- return 0;
- }
- }
- if(RegistrationStep[playerid] > 0)
- {
- if(RegistrationStep[playerid] == 1)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("barbat", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("barbat")))
- {
- PlayerInfo[playerid][pSex] = 1;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti {3344F5}Barbat.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Foloseste dd/mm/yyyy)");
- new rand = random(sizeof(RandomMaleSkins));
- SetPlayerSkin(playerid, RandomMaleSkins[rand][0]);
- RegistrationStep[playerid] = 2;
- return 0;
- }
- else if((strcmp("femeie", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("femeie")))
- {
- PlayerInfo[playerid][pSex] = 2;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti {FF00DD}Femeie.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Foloseste dd/mm/yyyy)");
- new rand = random(sizeof(RandomFemaleSkins));
- SetPlayerSkin(playerid, RandomFemaleSkins[rand][0]);
- RegistrationStep[playerid] = 2;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, " {20C0F5}Sunteti {3344F5}Barbat {20C0F5}sau {FF00DD}Femeie {20C0F5}? (Scrieti ce sunteti).");
- }
- return 0;
- }
- else if(RegistrationStep[playerid] == 2)
- {
- new year, month,day;
- getdate(year, month, day);
- new DateInfo[3][20];
- split(text, DateInfo, '/');
- if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Folosoto dd/mm/yyyy)");
- return 0;
- }
- new check = year - strvalEx(DateInfo[2]);
- if(check == year)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Folosoto dd/mm/yyyy)");
- return 0;
- }
- if(strvalEx(DateInfo[1]) > month)
- {
- check -= 1;
- }
- else if(strvalEx(DateInfo[1]) == month && strval(DateInfo[0]) > day)
- {
- check -= 1;
- }
- PlayerInfo[playerid][pAge] = check;
- format(string, sizeof(string), "Ok, deci aveti %d ani.",PlayerInfo[playerid][pAge]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- RegistrationStep[playerid] = 3;
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Din ce Tara sunteti? {20C0F5}(Scrieti: America, Europa, Asia sau Africa)");
- return 0;
- }
- else if(RegistrationStep[playerid] == 3)
- {
- new idx;
- tmp = strtok(text, idx);
- if((strcmp("america", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("america")))
- {
- PlayerInfo[playerid][pOrigin] = 1;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din America.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
- RegistrationStep[playerid] = 0;
- PlayerInfo[playerid][pTut] = 1;
- PlayerInfo[playerid][pPos_x] = 1612.324;
- PlayerInfo[playerid][pPos_y] = -2330.167;
- PlayerInfo[playerid][pPos_z] = 13.5469;
- MedicBill[playerid] = 0;
- SetPlayerSpawn(playerid);
- TogglePlayerControllable(playerid, 1);
- SafeGivePlayerMoney(playerid, 500);
- return 0;
- }
- else if((strcmp("europa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("europa")))
- {
- PlayerInfo[playerid][pOrigin] = 2;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din Europa.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
- RegistrationStep[playerid] = 0;
- PlayerInfo[playerid][pTut] = 1;
- PlayerInfo[playerid][pPos_x] = 1612.324;
- PlayerInfo[playerid][pPos_y] = -2330.167;
- PlayerInfo[playerid][pPos_z] = 13.5469;
- MedicBill[playerid] = 0;
- SetPlayerSpawn(playerid);
- TogglePlayerControllable(playerid, 1);
- SafeGivePlayerMoney(playerid, 500);
- return 0;
- }
- else if((strcmp("asia", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("asia")))
- {
- PlayerInfo[playerid][pOrigin] = 3;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din Asia.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
- RegistrationStep[playerid] = 0;
- PlayerInfo[playerid][pTut] = 1;
- PlayerInfo[playerid][pPos_x] = 1612.324;
- PlayerInfo[playerid][pPos_y] = -2330.167;
- PlayerInfo[playerid][pPos_z] = 13.5469;
- MedicBill[playerid] = 0;
- SetPlayerSpawn(playerid);
- TogglePlayerControllable(playerid, 1);
- SafeGivePlayerMoney(playerid, 500);
- return 0;
- }
- else if((strcmp("africa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("africa")))
- {
- PlayerInfo[playerid][pOrigin] = 4;
- SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din Africa.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
- RegistrationStep[playerid] = 0;
- PlayerInfo[playerid][pTut] = 1;
- PlayerInfo[playerid][pPos_x] = 1612.324;
- PlayerInfo[playerid][pPos_y] = -2330.167;
- PlayerInfo[playerid][pPos_z] = 13.5469;
- MedicBill[playerid] = 0;
- SetPlayerSpawn(playerid);
- TogglePlayerControllable(playerid, 1);
- SafeGivePlayerMoney(playerid, 500);
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Din ce Tara sunteti? {20C0F5}(Scrieti: America, Europa, Asia sau Africa)");
- }
- return 0;
- }
- return 0;
- }
- if(MarriageCeremoney[playerid] > 0)
- {
- new idx;
- tmp = strtok(text, idx);
- if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
- {
- if(GotProposedBy[playerid] < 999)
- {
- if(IsPlayerConnected(GotProposedBy[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Priest: %s do you take %s as your lovely Wife? (type 'yes', anything else will reject the Marriage).", giveplayer,sendername);
- SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
- MarriageCeremoney[GotProposedBy[playerid]] = 1;
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 1;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- }
- else if(ProposedTo[playerid] < 999)
- {
- if(IsPlayerConnected(ProposedTo[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new lovely couple, %s & %s have been married.", sendername, giveplayer);
- OOCNews(COLOR_WHITE, string);
- }
- else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new Gay couple, %s & %s have been married.", sendername, giveplayer);
- OOCNews(COLOR_WHITE, string);
- }
- else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new Lesbian couple, %s & %s have been married.", sendername, giveplayer);
- OOCNews(COLOR_WHITE, string);
- }
- //MarriageCeremoney[ProposedTo[playerid]] = 1;
- MarriageCeremoney[ProposedTo[playerid]] = 0;
- MarriageCeremoney[playerid] = 0;
- format(string, sizeof(string), "%s", sendername);
- strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s", giveplayer);
- strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
- SafeGivePlayerMoney(playerid, - 20000);
- PlayerInfo[playerid][pMarried] = 1;
- PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
- PlayerInfo[ProposedTo[playerid]][pPhousekey] = PlayerInfo[playerid][pPhousekey];
- PlayerInfo[ProposedTo[playerid]][pPbiskey] = PlayerInfo[playerid][pPbiskey];
- ProposedTo[playerid] = 999;
- MarriageCeremoney[playerid] = 0;
- return 1;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- ProposedTo[playerid] = 999;
- return 0;
- }
- }
- }
- else
- {
- if(GotProposedBy[playerid] < 999)
- {
- if(IsPlayerConnected(GotProposedBy[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
- SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- }
- else if(ProposedTo[playerid] < 999)
- {
- if(IsPlayerConnected(ProposedTo[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- ProposedTo[playerid] = 999;
- return 0;
- }
- }
- }
- return 0;
- }
- if(WritingPaper[playerid] > 0)
- {
- new line;
- new nstring[128];
- new idx;
- new length = strlen(text);
- while ((idx < length) && (text[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = text[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- if(WritingLine[playerid] == 1) { SendClientMessage(playerid, COLOR_GRAD2, "* Please type in the Title of your Newspaper."); }
- else { SendClientMessage(playerid, COLOR_LIGHTRED, "* Please type in a Text Line of your Newspaper."); }
- return 0;
- }
- format(nstring, sizeof(nstring), "%s", text);
- switch(WritingLine[playerid])
- {
- case 1:
- {
- new fstring[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(fstring, sizeof(fstring), "%s", sendername);
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperMaker], fstring, 0, strlen(fstring), 255);
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperTitle], nstring, 0, strlen(nstring), 255);
- line = 0; WritingLine[playerid] = 2;
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Now you can write down the News Lines, 7 remaining.");
- }
- case 2:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText1], nstring, 0, strlen(nstring), 255);
- line = 1; WritingLine[playerid] = 3;
- }
- case 3:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText2], nstring, 0, strlen(nstring), 255);
- line = 2; WritingLine[playerid] = 4;
- }
- case 4:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText3], nstring, 0, strlen(nstring), 255);
- line = 3; WritingLine[playerid] = 5;
- }
- case 5:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText4], nstring, 0, strlen(nstring), 255);
- line = 4; WritingLine[playerid] = 6;
- }
- case 6:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText5], nstring, 0, strlen(nstring), 255);
- line = 5; WritingLine[playerid] = 7;
- }
- case 7:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText6], nstring, 0, strlen(nstring), 255);
- line = 6; WritingLine[playerid] = 8;
- }
- case 8:
- {
- strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText7], nstring, 0, strlen(nstring), 255);
- PaperInfo[WritingPaperNumber[playerid]][PaperUsed] = 1;
- SavePapers();
- line = 7; WritingLine[playerid] = 0; WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999;
- }
- }
- if(line > 0)
- {
- format(string, sizeof(string), "* You wrote Line %d of the Newspaper.", line);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(line == 7)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* Your Newspaper has been added to the News List (for Paper Boys).");
- }
- }
- return 0;
- }
- if(ConnectedToPC[playerid] == 255)
- {
- new idx;
- tmp = strtok(text, idx);
- if ((strcmp("Contracts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Contracts")))
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " Only Hitman with Rank 4 or above can search and assign Contracts !");
- return 0;
- }
- SearchingHit(playerid);
- return 0;
- }
- else if ((strcmp("News", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("News")))
- {
- new x_nr[24];
- x_nr = strtok(text, idx);
- if(!strlen(x_nr)) {
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: News [number] or News delete [number] or News delete all");
- format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
- return 0;
- }//lets start
- if(strcmp(x_nr,"1",true) == 0)
- {
- if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
- if(News[hTaken1] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
- format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
- News[hTaken1] = 1; PlacedNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Spot 1 is already Taken !");
- return 0;
- }
- }
- else if(strcmp(x_nr,"2",true) == 0)
- {
- if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
- if(News[hTaken2] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
- format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
- News[hTaken2] = 1; PlacedNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Spot 2 is already Taken !");
- return 0;
- }
- }
- else if(strcmp(x_nr,"3",true) == 0)
- {
- if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
- if(News[hTaken3] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
- format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
- News[hTaken3] = 1; PlacedNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Spot 3 is already Taken !");
- return 0;
- }
- }
- else if(strcmp(x_nr,"4",true) == 0)
- {
- if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
- if(News[hTaken4] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
- format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
- News[hTaken4] = 1; PlacedNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Spot 4 is already Taken !");
- return 0;
- }
- }
- else if(strcmp(x_nr,"5",true) == 0)
- {
- if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
- if(News[hTaken5] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
- format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
- News[hTaken5] = 1; PlacedNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Spot 5 is already Taken !");
- return 0;
- }
- }
- else if(strcmp(x_nr,"delete",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You must be Rank 4 to delete messages from the News Channel !");
- return 0;
- }
- new string1[MAX_PLAYER_NAME];
- new x_tel[64];
- x_tel = strtok(text, idx);
- if(!strlen(x_tel)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: News delete [number] or News delete all.");
- return 0;
- }
- if(strcmp(x_tel,"1",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
- News[hTaken1] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (1) from the Hitman Agency's News Channel.");
- return 0;
- }
- else if(strcmp(x_tel,"2",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
- News[hTaken2] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (2) from the Hitman Agency's News Channel.");
- return 0;
- }
- else if(strcmp(x_tel,"3",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
- News[hTaken3] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (3) from the Hitman Agency's News Channel.");
- return 0;
- }
- else if(strcmp(x_tel,"4",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
- News[hTaken4] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (4) from the Hitman Agency's News Channel.");
- return 0;
- }
- else if(strcmp(x_tel,"5",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
- News[hTaken5] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (5) from the Hitman Agency's News Channel.");
- return 0;
- }
- else if(strcmp(x_tel,"all",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
- News[hTaken1] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
- News[hTaken2] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
- News[hTaken3] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
- News[hTaken4] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
- News[hTaken5] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "* You deleted all the News Message from the Hitman Agency's News Channel.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: News delete [number] or News delete all.");
- return 0;
- }
- }
- else { return 0; }
- }
- else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need Rank 4 to Give Contracts to Hitmans !");
- return 0;
- }
- if(hitfound == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " There is no Hit Founded yet, use Contracts in the Portable first !");
- return 0;
- }
- tmp = strtok(text, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");
- return 0;
- }
- //giveplayerid = strval(tmp);
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
- {
- if(GoChase[giveplayerid] < 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " That Hitman is already busy with a Contract !");
- return 0;
- }
- if(IsPlayerConnected(hitid))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giver, sizeof(giver));
- GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
- //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
- //SendClientMessage(playerid, COLOR_YELLOW, string);
- //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
- //SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* Hitman %s, assigned Hitman %s to kill: %s(ID:%d), for $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- GoChase[giveplayerid] = hitid;
- GetChased[hitid] = giveplayerid;
- GotHit[hitid] = 1;
- hitid = 0;
- hitfound = 0;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The Contracted Person is offline, use Contracts in the Portable again !");
- return 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not a Hitman !");
- return 0;
- }
- }
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Hitman is not Online, or ain't a Hitman !");
- return 0;
- }
- }
- else if ((strcmp("Ranks", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks")))
- {
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Agency's Ranks __________________|");
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s: Rank %d", giveplayer,PlayerInfo[i][pRank]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- }
- else if ((strcmp("Order", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Order")))
- {
- if(OrderReady[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You already Ordered a Package, pick it up at your Head Quarter's Front Door first !");
- return 0;
- }
- tmp = strtok(text, idx);
- if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
- {
- if(PlayerInfo[playerid][pRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 4999)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 1 ($5000), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 1;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
- {
- if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 5999)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 2 ($6000), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 2;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
- {
- if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 5999)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 3 ($6000), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 3;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
- {
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 7999)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 4 ($8000), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 4;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
- {
- if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 7999)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 5 ($8000), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 5;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
- {
- if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 8499)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 6 ($8500), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 6;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
- {
- if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
- if(GetPlayerMoney(playerid) > 8499)
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 7 ($8500), it will be delivered at your Head Quarter's Front Door.");
- OrderReady[playerid] = 7;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
- return 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Available Packages __________________|");
- if(PlayerInfo[playerid][pRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) ($5000 ) Rank 1 - 5: Knife, Desert Eagle, MP5, Shotgun"); }
- if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, M4, MP5, Shotgun"); }
- if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun"); }
- if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) ($8000) Rank 3 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
- if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) ($8000) Rank 3 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
- if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) ($8500) Rank 4 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
- if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) ($8500) Rank 4 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
- SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
- return 0;
- }
- }
- else if ((strcmp("Logout", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout")))
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You have shutdowned your Laptop, and Disconnected from your Agency.");
- ConnectedToPC[playerid] = 0;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "|___ Hitman Agency ___|");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - News");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - Contracts");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - Givehit");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - Backup");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - Order");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - Ranks");
- SendClientMessage(playerid, COLOR_YELLOW2, "| - Logout");
- SendClientMessage(playerid, COLOR_YELLOW2, "|");
- SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
- return 0;
- }
- return 0;
- }
- if(CallLawyer[playerid] == 111)
- {
- new idx;
- tmp = strtok(text, idx);
- if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s is in Jail, and needs a Lawyer. Go to the Police Station.", sendername);
- SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
- SendJobMessage(2, TEAM_AZTECAS_COLOR, "* When you are at the Police Station, ask an Officer to approve you with /accept lawyer.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "A message has been sent to all available Lawyers, please wait.");
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started.");
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- return 0;
- }
- }
- if(TalkingLive[playerid] != 255)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(PlayerInfo[playerid][pJob] == 6)
- {
- format(string, sizeof(string), "LiveNR %s: %s", sendername, text);
- OOCNews(COLOR_LIGHTGREEN, string);
- }
- else
- {
- format(string, sizeof(string), "Live interview %s: %s", sendername, text);
- OOCNews(COLOR_LIGHTGREEN, string);
- }
- return 0;
- }
- if(Mobile[playerid] != 255)
- {
- new idx;
- tmp = strtok(text, idx);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(UnidentifedCall[playerid] == 1)
- {
- format(string, sizeof(string), "Stranger Says (cellphone): %s", text);
- }
- else
- {
- format(string, sizeof(string), "%s Says (cellphone): %s", sendername, text);
- }
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- //printf("callers line %d called %d caller %d",Mobile[Mobile[playerid]],Mobile[playerid],playerid);
- if(Mobile[playerid] == 914)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Sorry I don't understand?");
- return 0;
- }
- new turner[MAX_PLAYER_NAME];
- new wanted[128];
- GetPlayerName(playerid, turner, sizeof(turner));
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: We have alerted all units in the area.");
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Thank you for reporting this incident");
- format(wanted, sizeof(wanted), "Dispatch: All Units IA: Caller: %s",turner);
- format(wanted, sizeof(wanted), "Dispatch: Incident: %s",text);
- SendRadioMessage(1, TEAM_CYAN_COLOR, wanted);
- SendRadioMessage(2, TEAM_CYAN_COLOR, wanted);
- SendRadioMessage(3, TEAM_CYAN_COLOR, wanted);
- SendRadioMessage(4, TEAM_CYAN_COLOR, wanted);
- SendRadioMessage(12, TEAM_CYAN_COLOR, wanted);
- new Float:trace_x, Float:trace_y, Float:trace_z;
- GetPlayerPos(playerid, trace_x, trace_y, trace_z);
- emdtrace = 1; emdtrace_x = trace_x; emdtrace_y = trace_y; emdtrace_z = trace_z;
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }
- if(Mobile[playerid] == 913)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand?");
- return 0;
- }
- if ((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no")))
- {
- new turner[MAX_PLAYER_NAME];
- new wanted[128];
- GetPlayerName(playerid, turner, sizeof(turner));
- SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: We have alerted all units in the area.");
- SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
- format(wanted, sizeof(wanted), "HQ: All Units APB: Reporter: %s",turner);
- format(wanted, sizeof(wanted), "HQ: Crime: %s, Suspect: Unknown",PlayerCrime[playerid][pAccusing]);
- SendRadioMessage(1, TEAM_CYAN_COLOR, wanted);
- SendRadioMessage(2, TEAM_CYAN_COLOR, wanted);
- SendRadioMessage(3, TEAM_CYAN_COLOR, wanted);
- new Float:trace_x, Float:trace_y, Float:trace_z;
- GetPlayerPos(playerid, trace_x, trace_y, trace_z);
- pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }
- new badguy;
- //badguy = strval(tmp);
- badguy = ReturnUser(tmp);
- if (IsPlayerConnected(badguy))
- {
- if(badguy != INVALID_PLAYER_ID)
- {
- if (gTeam[badguy] == 2 || gTeam[badguy] == 1)
- {
- SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: You will have to contact internal affairs. This is an emergency line");
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }
- if (WantedPoints[badguy] > 0)
- {
- SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: Units are already assigned to that case");
- SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }
- if (badguy == playerid)
- {
- SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: Dont Fool Around, This is an emergency line.");
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }
- SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: We have alerted all units in the area.");
- SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
- new Float:trace_x, Float:trace_y, Float:trace_z;
- GetPlayerPos(playerid, trace_x, trace_y, trace_z);
- pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }//invalid id
- return 0;
- }//not connected
- else
- {
- format(string, sizeof(string), "Police Dispatch: I have no Information on %s, are you sure thats the right name?",tmp);
- SendClientMessage(playerid, COLOR_DBLUE, string);
- return 0;
- }
- }
- if(Mobile[playerid] == 912)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand?");
- return 0;
- }
- strmid(PlayerCrime[playerid][pAccusing], text, 0, strlen(text), 255);
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: If you know the assailant's name or part of it say it now or just say no.");
- Mobile[playerid] = 913;
- return 0;
- }
- if(Mobile[playerid] == 911)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand, police or paramedic?");
- return 0;
- }
- else if ((strcmp("police", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("police")))
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to Police HQ, please hold.");
- Mobile[playerid] = 912;
- SendClientMessage(playerid, COLOR_DBLUE, "HQ: Please give me a short description of the crime and location.");
- return 0;
- }
- else if ((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedic")))
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to Paramedic HQ, please hold.");
- Mobile[playerid] = 914;
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Please give me a short description of the Incident.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry I don't understand, police or paramedic?");
- return 0;
- }
- }
- if(Mobile[playerid] == 3900)
- {
- SendFamilyMessage(9, COLOR_GREEN, "You have one new message:");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "[ID:%d] %s says: %s", playerid, sendername, text);
- SendFamilyMessage(9, COLOR_GREEN, string);
- SendClientMessage(playerid, COLOR_GREEN, "ABC Studio: Thanks for your information !");
- SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
- Mobile[playerid] = 255;
- return 0;
- }
- if(Mobile[playerid] == 1180)
- {
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: What would you like to advertise?");
- return 0;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(text);
- while ((idx < length) && (text[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = text[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
- {
- format(string, sizeof(string), " Please try again later %d seconds between Advertisements !", (addtimer/1000));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- return 1;
- }
- new payout = idx * 10;
- if(GetPlayerMoney(playerid) < payout + 200)
- {
- format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- return 1;
- }
- SafeGivePlayerMoney(playerid, - payout);
- SafeGivePlayerMoney(playerid, - 200);
- SBizzInfo[7][sbTill] += payout + 200;
- ExtortionSBiz(7, payout + 200);
- format(string, sizeof(string), "Advertisement: %s, Contact %s (PH: %d)", result,sendername, PlayerInfo[playerid][pPnumber]);
- OOCNews(TEAM_GROVE_COLOR,string);
- format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters~n~~w~Plus ~g~100$~w~ for ad through phone", payout, idx);
- GameTextForPlayer(playerid, string, 5000, 1);
- if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
- }
- if(IsPlayerConnected(Mobile[playerid]))
- {
- if(Mobile[Mobile[playerid]] == playerid)
- {
- if(PlayerInfo[Mobile[playerid]][pSpeaker] == 1)
- {
- ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- else
- {
- SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"Theres nobody there");
- }
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Says (cellphone): %s", d,m,y,h,mi,s, sendername, text);
- ChatLog(string);
- return 0;
- }
- if (BusShowLocation[playerid][0] == 1)
- {
- new idx;
- tmp = strtok(text, idx);
- if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
- {
- SetPlayerCheckpoint(playerid, BusShowLocation[playerid][1], BusShowLocation[playerid][2], BusShowLocation[playerid][3], 3.0);
- SendClientMessage(playerid, COLOR_YELLOW, "There's the location (red checkpoint), you'd better hurry!");
- BusShowLocation[playerid][0] = 0;
- BusShowLocationC[playerid] = 1;
- return 0;
- }
- else
- {
- BusShowLocation[playerid][0] = 0;
- return 0;
- }
- }
- if (PlayerInfo[playerid][pChatMode] == 0) // By CuervO_NegrO
- {
- if(gPlayerLogged[playerid] == 0)
- {
- return 0;
- }
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
- return 0;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new playercar = GetPlayerVehicleID(playerid);
- new y1,m1,d1;
- new h1,mi1,s1;
- getdate(y1,m1,d1);
- gettime(h1,mi1,s1);
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(PlayerInfo[playerid][pAdminDuty] == 1)
- {
- format(string, sizeof(string), "Admin: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_NICERED, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local Admin): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
- {
- format(string, sizeof(string), "Stranger: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local Masked): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
- {
- format(string, sizeof(string), "%s: %s", sendername, text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- }
- else
- {
- if(IsModelAPlane(playercar) || IsModelABike(playercar) || IsModelAHeli(playercar) || IsModelABoat(playercar) || IsModelASpecial(playercar))
- {
- if(PlayerInfo[playerid][pAdminDuty] == 1)
- {
- format(string, sizeof(string), "Admin: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_NICERED, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
- {
- format(string, sizeof(string), "Stranger: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
- {
- format(string, sizeof(string), "%s: %s", sendername, text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- }
- else
- {
- if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
- {
- if(PlayerInfo[playerid][pAdminDuty] == 1)
- {
- format(string, sizeof(string), "(Windows Shut) Admin: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_NICERED, 10.0, 8000);
- ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
- {
- format(string, sizeof(string), "(Windows Shut) Stranger: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 10.0, 8000);
- ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
- {
- format(string, sizeof(string), "(Windows Shut) %s: %s", sendername, text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 10.0, 8000);
- ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- }
- else
- {
- if(PlayerInfo[playerid][pAdminDuty] == 1)
- {
- format(string, sizeof(string), "(Windows Open) Admin: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_NICERED, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
- {
- format(string, sizeof(string), "(Windows Open) Stranger: %s", text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
- {
- format(string, sizeof(string), "(Windows Open) %s: %s", sendername, text);
- SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- ChatLog(string);
- }
- }
- }
- }
- return 0;
- }
- else if (PlayerInfo[playerid][pChatMode] == 1) // By CuervO_NegrO
- {
- if(gPlayerLogged[playerid] == 0)
- {
- return 0;
- }
- if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
- return 0;
- }
- if(noooc == 1 && PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, OOC is turned off");
- return 0;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new y1,m1,d1;
- new h1,mi1,s1;
- getdate(y1,m1,d1);
- gettime(h1,mi1,s1);
- if(PlayerInfo[playerid][pAdmin] == 0)
- {
- format(string, sizeof(string), "(( %s ))", text);
- }
- else
- {
- format(string, sizeof(string), "[[ %s ]]", text);
- }
- SendPlayerMessageToAll(playerid, string);
- format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
- PublicLog(string);
- return 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement