SHARE
TWEET

Untitled

koussai200 Aug 25th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //BiA team menu
  2.  
  3. CMD:biahelp(playerid, params[])
  4. {
  5.     #pragma unused params
  6.     if(PlayerInfo[playerid][BIA] >= 1) {
  7.         new string[1900];
  8.         strcat(string, "\t{90A8B7}|-| {FF0000}Brothers In Arms Crew Commands {90A8B7}|-|", 1900 );
  9.         strcat(string, "\t{90A8B7}|-| {FF0000}Ranks 1-6{90A8B7}|-|", 1900 );
  10.         strcat(string, "\n\n{3D7DA5}/brothersinarms and /biamembers{96D6FD}(Shows all online BiA members)", 1900 );
  11.         strcat(string, "\n{3D7DA5}/biabase{96D6FD}(teleports you to BiA base)", 1900 );
  12.         strcat(string, "\n{3D7DA5}/biatune{96D6FD}(Gives your vehicle speical BiA tune)", 1900 );
  13.         strcat(string, "\n{3D7DA5}/biaweaps{96D6FD}(Gives you BiA team weapons , do not abuse it!)", 1900 );
  14.         strcat(string, "\n{3D7DA5}/biadeagle{96D6FD}(Disarm you and gives BiA deagle)", 1900 );
  15.         strcat(string, "\n{3D7DA5}/biam4{96D6FD}(Disarm you and gives BiA M4)", 1900 );
  16.         strcat(string, "\n{3D7DA5}/biasawn{96D6FD}(Disarm you and gives BiA Sawn-Off)", 1900 );
  17.         strcat(string, "\n{3D7DA5}Skins{96D6FD}(/biaskin1 /biaskin2 /biaskin3 /biaskin4 /biaskin5)", 1900 );
  18.         strcat(string, "\n{3D7DA5}Vehicles{96D6FD}(/biacar1 /biacar2 /biacar3 /biacar4 /biacar5 /biacar6 /biacar7 /biacar8 /biab /biay /biahu /biaboat)", 1900 );
  19.         strcat(string, "\n{3D7DA5}/biah{96D6FD}(Tells other [BiA] members that you need help!)", 1900 );
  20.         strcat(string, "\n{3D7DA5}/bia{96D6FD}([BiA] private chat, do not spam!)", 1900 );
  21.         strcat(string, "\n{3D7DA5}/biaafk{96D6FD}([BiA] afk)", 1900 );
  22.         strcat(string, "\n{3D7DA5}/biaback{96D6FD}([BiA] back)", 1900 );
  23.         strcat(string, "\n{3D7DA5}/biac{96D6FD}(Gives you BiA team official color)", 1900 );
  24.         strcat(string, "\n{3D7DA5}/biasay{96D6FD}([BiA] public say, do not abuse!)", 1900 );
  25.         strcat(string, "\n{90A8B7}|-| {FF0000}Rank 7-9{90A8B7}|-|", 1900 );
  26.         strcat(string, "\n{3D7DA5}/biahi{96D6FD}(Gives you BiA Crew official highlight colors , only level 7+ can use it!)", 1900 );
  27.         strcat(string, "\n{3D7DA5}/biaann{96D6FD}(Announce for all BiA members, only level 7+ can use it!)", 1900 );
  28.         strcat(string, "\n{90A8B7}|-| {FF0000}Rank 10-15{90A8B7}|-|", 1900 );
  29.         strcat(string, "\n{3D7DA5}/biao{96D6FD}(BiA managements chat, only level 9+ can use it!)", 1900 );
  30.         strcat(string, "\n{3D7DA5}/setnlbia{96D6FD}(Sets a note on bia notes list, only level 14+ can use it!)", 1900 );
  31.         strcat(string, "\n{3D7DA5}/clearbianl{96D6FD}(It will clear all notes exists in /bianl, only level 14+ can use it!)", 1900 );
  32.         strcat(string, "\n{3D7DA5}/osetbia{96D6FD}(Sets offline BiA level, Only level 15 can use it!)", 1900 );
  33.         strcat(string, "\n{3D7DA5}/setbia{96D6FD}(Sets [BiA] level , only level 10+ can use it!)", 1900 );
  34.         strcat(string, "\n{3D7DA5}/settempbia{96D6FD}(Sets [BiA] temp level , only level 9+ can use it!)", 1900 );
  35.         strcat(string, "\n\t\t{00FFFF}|- Commands Scripted By Armin, Edited by Superman & Pinkbird -|", 1900 );
  36.         ShowPlayerDialog(playerid,1235, DIALOG_STYLE_MSGBOX, "{005F6A}BiA Commands", string, "OK","Cancel");
  37.     } else return SendClientMessage(playerid,COLOR_RED, "ERROR: You need to be BiA member to use this command");
  38.     return 1;}
  39. CMD:biaann(playerid, params[])
  40. {
  41.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  42.     if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /biaann [text]");
  43.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaann again!");
  44.     if(PlayerInfo[playerid][BIA] >= 7) {
  45.         for(new i = 0; i < MAX_PLAYERS; i++)
  46.         if(PlayerInfo[i][BIA] >= 1) {
  47.         GameTextForPlayer(i, params, 4000, 3);}
  48.         CMDMessageToBIA(playerid, "BiAAnnounce");
  49.         return SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  50.     } else return SendClientMessage(playerid, red, "ERROR: You need to be [BIA] level 7+ to use that command!");
  51. }
  52. CMD:osetbia(playerid,params[])
  53. {
  54.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  55.     if(PlayerInfo[playerid][BIA] >= 15)
  56.     {
  57.             new file[256],string[120];
  58.             new tmp[128], tmp2[128], Index, level;             tmp = strtok(params,Index), tmp2 = strtok(params,Index), level = strval(tmp2);
  59.             if(level > 15) return SendClientMessage(playerid, red, "ERROR:Max BIA level is 15!");
  60.             if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /osetbia [name] [level]");
  61.             if(isnull(tmp2)) return SendClientMessage(playerid, red, "ERROR: You must input a level");
  62.             format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(tmp));
  63.             if(!fexist(file)) return SendClientMessage(playerid, red, "ERROR: that account don't even exist!");
  64.             dini_Set(file,"BIA",tmp2);
  65.             new year,month,day;   getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
  66.             format(string,sizeof(string),"You have set %s's BIA level to %s on %d/%d/%d at %d:%d:%d",tmp,tmp2 ,day, month, year, hour, minute, second );
  67.             SendClientMessage(playerid,yellow,string);
  68.             PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  69.     }
  70.     return 1;
  71. }
  72. new BIAColor[MAX_PLAYERS] = 0;
  73. forward public BIAHIGHLIGHT(playerid);
  74. public BIAHIGHLIGHT(playerid){
  75.     if(BIAColor[playerid] == 0) SetPlayerColor(playerid, 0xFFFFFFFF), BIAColor[playerid] = 1;
  76.     else if(BIAColor[playerid] == 1) SetPlayerColor(playerid, 0x2C2727FF), BIAColor[playerid] = 0;
  77. }
  78. CMD:biahi(playerid, params[]) {
  79.     if(PlayerInfo[playerid][BIA] >= 7) {
  80.         SetTimerEx("BIAHIGHLIGHT", 1000, 1, "u", playerid);
  81.         CMDMessageToBIA(playerid,"BiAHighLight");
  82.     } else return SendClientMessage(playerid, red, "ERROR: You need to be BiA level 7+ to use this command!");
  83.     return 1;
  84. }
  85. CMD:biabase(playerid,params[]) {
  86.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biabase again!");
  87.     if(PlayerInfo[playerid][BIA] >= 1) {
  88.     if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
  89.     TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
  90.     tseconds[playerid] = 6;
  91.     format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  92.     if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
  93.     vCount[playerid] = 1;
  94.     Tx[playerid] = 2762.9824;
  95.     Ty[playerid] = -2453.9502;
  96.     Tz[playerid] = 13.5354;
  97.     Ti[playerid] = 0;
  98.     new string[128];
  99.     new dsname[MAX_PLAYER_NAME];
  100.     format(telestring,43,"~b~[] ~r~BiA base ~b~[]");
  101.     GetPlayerName(playerid, dsname, sizeof(dsname));
  102.     format(string, sizeof(string), "{037683}[TELE]:{00AABC}%s Has Just Teleported To [BiA] base ", dsname);
  103.     SendClientMessageToAll(COLOR_ORANGE, string);
  104.     } else return SendClientMessage(playerid,red,"ERROR: You need to be a [BiA] member to use this command");
  105.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  106.     CMDMessageToBIA(playerid, "BiABase");
  107.     return 1;
  108. }
  109. CMD:biaskin1(playerid,params[]) {
  110.     #pragma unused params
  111.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaskin1 again!");
  112.     if(PlayerInfo[playerid][BIA] >= 1) {
  113.     SetPlayerSkin(playerid,46);
  114.     CMDMessageToBIA(playerid,"BiASkin1");
  115.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be BiA member to use this command", "OK", "Cancel");
  116.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+2000);
  117.     return 1;
  118. }
  119. CMD:biaskin2(playerid,params[]) {
  120.     #pragma unused params
  121.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaskin2 again!");
  122.     if(PlayerInfo[playerid][BIA] >= 1) {
  123.     SetPlayerSkin(playerid,270);
  124.     CMDMessageToBIA(playerid,"BiASkin2");
  125.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be BiA member to use this command", "OK", "Cancel");
  126.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+2000);
  127.     return 1;
  128. }
  129. CMD:biaskin3(playerid,params[]) {
  130.     #pragma unused params
  131.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaskin3 again!");
  132.     if(PlayerInfo[playerid][BIA] >= 1) {
  133.     SetPlayerSkin(playerid,120);
  134.     CMDMessageToBIA(playerid,"BiASkin3");
  135.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be BiA member to use this command", "OK", "Cancel");
  136.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+2000);
  137.     return 1;
  138. }
  139. CMD:biaskin4(playerid,params[]) {
  140.     #pragma unused params
  141.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaskin4 again!");
  142.     if(PlayerInfo[playerid][BIA] >= 1) {
  143.     SetPlayerSkin(playerid,171);
  144.     CMDMessageToBIA(playerid,"BiASkin4");
  145.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be BiA member to use this command", "OK", "Cancel");
  146.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+2000);
  147.     return 1;
  148. }
  149. CMD:biaskin5(playerid,params[]) {
  150.     #pragma unused params
  151.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaskin5 again!");
  152.     if(PlayerInfo[playerid][BIA] >= 1) {
  153.     SetPlayerSkin(playerid,141);
  154.     CMDMessageToBIA(playerid,"BiASkin5");
  155.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be BiA member to use this command", "OK", "Cancel");
  156.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+2000);
  157.     return 1;
  158. }
  159. CMD:biasay(playerid,params[]) {
  160.     #pragma unused params
  161.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biasay again!");
  162.     if(PlayerInfo[playerid][BIA] >= 3) {
  163.     //[BiA][KOD]$uperman says: Test
  164.         if(isnull(params)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /biasay [text]");
  165.         new string[128]; format(string, sizeof(string), "{4015C2}[BiA] %s Says: {FF0000}%s", /*GetBiARank(playerid), PlayerInfo[playerid][BIA],*/ PlayerName2(playerid), params[0]);
  166.         SendClientMessageToAll(COLOR_BRIGHTRED,string);
  167.         return SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  168.     } else return SendClientMessage(playerid,COLOR_RED,"ERROR: You need to be level 2+ BiA member to use this command!");
  169. }
  170. CMD:biao(playerid, params[])
  171. {
  172.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "ERROR: You need to be logged in to use this command!");
  173.     if(PlayerInfo[playerid][BIA] > 9)
  174.     {
  175.         new opermessage[256];
  176.         format(opermessage, sizeof opermessage, "{C3C3C3}[BiAO] | %s | {3036E9}%s: {A1C287}%s", PlayerName2(playerid), GetBiARank(playerid), params);
  177.         for(new i = 0; i < MAX_PLAYERS; i++)
  178.         {
  179.             if(PlayerInfo[i][BIA] >= 10 && PlayerInfo[i][LoggedIn] == 1) SendClientMessage(i, -1, opermessage);
  180.         }
  181.     } else return ShowPlayerDialog(playerid, 3245, DIALOG_STYLE_MSGBOX, "ERROR", "{FF0000}You need to be [BiA] rank 10+ to use this command!", "Ok", "");
  182.     return 1;
  183. }
  184. CMD:biatune(playerid, params[]) {
  185.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "ERROR : You need to be Logged in to use this command");
  186.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biatune again!");
  187.     if(PlayerInfo[playerid][BIA] >= 1) {
  188.         new vehicleid = GetPlayerVehicleID(playerid);
  189.         BIATune(vehicleid);
  190.         SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  191.         CMDMessageToBIA(playerid, "BiATune");
  192.         return PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  193.     } else return SendClientMessage(playerid , red, "ERROR : You need to be [BiA] member to use this command!");
  194. }
  195. BIATune(vehicleid)
  196. {
  197.     ChangeVehicleColor(vehicleid,0,1);
  198.     AddVehicleComponent(vehicleid, 1010);
  199.     AddVehicleComponent(vehicleid, 1087);
  200.     AddVehicleComponent(vehicleid,1080);
  201.     return 1;
  202. }
  203. static BIADutyPlaying[MAX_PLAYERS]; // was undefined
  204. CMD:brothersinarms(playerid,params[])
  205. {
  206.     #pragma unused params
  207.     new count = 0;
  208.     new string[128];
  209.     new ChangeColor;
  210.     new BIAR[128];
  211.     new BIADUTY[128];
  212.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  213.     SendClientMessage(playerid, 0x1DCBDEAA/*Fixed it for you*/, " ");
  214.     SendClientMessage(playerid, 0x1DCBDEAA/*Fixed it for you*/, "__________ |- Online Brothers In Arms Crew Members -| __________");
  215.     SendClientMessage(playerid, 0x1DCBDEAA/*Fixed it for you */, " ");
  216.     for(new i = 0; i < MAX_PLAYERS; i++)
  217.     {
  218.         if(!IsPlayerConnected(i)) continue;
  219.         if(PlayerInfo[i][LoggedIn] == 0) continue;
  220.         if(PlayerInfo[i][BIA] == 0) continue;
  221.  
  222.         if(PlayerInfo[i][BIA] == 1) { BIAR = "New Brother"; ChangeColor = 0x00FFFFFF; }
  223.         if(PlayerInfo[i][BIA] == 2) { BIAR = "Young Brother"; ChangeColor = 0x8B008BFF; }
  224.         if(PlayerInfo[i][BIA] == 3) { BIAR = "Mini Brother"; ChangeColor = 0xFF00FFFF; }
  225.         if(PlayerInfo[i][BIA] == 4) { BIAR = "Senior Brother"; ChangeColor = 0xFF0000FF; }
  226.         if(PlayerInfo[i][BIA] == 5) { BIAR = "Trustfull Brother"; ChangeColor = 0xFFFF00FF; }
  227.         if(PlayerInfo[i][BIA] == 6) { BIAR = "Loyal Brother"; ChangeColor = 0xA52A2AFF; }
  228.         if(PlayerInfo[i][BIA] == 7) { BIAR = "Old Brother"; ChangeColor = 0xFF8000FF; }
  229.         if(PlayerInfo[i][BIA] == 8) { BIAR = "Special Brother"; ChangeColor = 0xA52A2AFF; }
  230.         if(PlayerInfo[i][BIA] == 9) { BIAR = "Vice In Charge Brother"; ChangeColor = 0x105F00FF; }
  231.         if(PlayerInfo[i][BIA] == 10) { BIAR = "Vice Brother"; ChangeColor = 0x000D5FFF; }
  232.         if(PlayerInfo[i][BIA] == 11) { BIAR = "Combat Brother"; ChangeColor = 0xFF00FFFF; }
  233.         if(PlayerInfo[i][BIA] == 12) { BIAR = "Top Brother"; ChangeColor = 0x01DF01FF; }
  234.         if(PlayerInfo[i][BIA] == 13) { BIAR = "Head Brother"; ChangeColor = 0x190707FF; }
  235.         if(PlayerInfo[i][BIA] == 14) { BIAR = "Ultra Brother"; ChangeColor = 0xDF01A5FF; }
  236.         if(PlayerInfo[i][BIA] == 15) { BIAR = "Chief"; ChangeColor = 0x0000FFFF; }
  237.  
  238.         if(BIADutyPlaying[i] == 0) BIADUTY = "{FF0000}Playing.";
  239.         if(BIADutyPlaying[i] == 1) BIADUTY = "{FF0000}Away from the keyboard.";
  240.  
  241.         format(string, 128, "BiA Rank: %d - %s (ID:%i) | %s | %s",PlayerInfo[i][BIA], PlayerName2(i),i, BIAR, BIADUTY);
  242.         SendClientMessage(playerid, ChangeColor, string);
  243.         count++;
  244.     }
  245.     if (count == 0) SendClientMessage(playerid,0xff0000,"No BiA members online at the moment");
  246.     SendClientMessage(playerid, 0x1DCBDEAA, "_________________________________________________");
  247.     return 1;
  248. }
  249. CMD:biamembers(playerid, params[]) return cmd_brothersinarms(playerid, params);
  250. CMD:biaafk(playerid,params[]) {
  251.     #pragma unused params
  252.     if(PlayerInfo[playerid][BIA] >= 1) {
  253.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaafk again!");
  254.         new string[256],kuldoneve[MAX_PLAYER_NAME];
  255.         SendClientMessage(playerid,0x99FF00AA,"Type /biaback when you back.");
  256.         GameTextForPlayer(playerid,"~r~ Are you now AFK", 5000, 1);
  257.         AFK[playerid] = Create3DTextLabel("Brothers In Arms Away From Keyboard!", 0xFF0000FF, 0.0, 0.0, 2.0, 40, 0, 0);
  258.         Attach3DTextLabelToPlayer(AFK[playerid],playerid, 0.0, 0.0, 0.4);
  259.         TogglePlayerControllable(playerid, 0);
  260.         GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
  261.         /*if(PlayerInfo[playerid][BIA] == 1)
  262.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  263.         if(PlayerInfo[playerid][BIA] == 2)
  264.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  265.         if(PlayerInfo[playerid][BIA] == 3)
  266.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  267.         if(PlayerInfo[playerid][BIA] == 4)
  268.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  269.         if(PlayerInfo[playerid][BIA] == 5)
  270.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  271.         if(PlayerInfo[playerid][BIA] == 6)
  272.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  273.         if(PlayerInfo[playerid][BIA] == 7)
  274.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  275.         if(PlayerInfo[playerid][BIA] == 8)
  276.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  277.         if(PlayerInfo[playerid][BIA] == 9)
  278.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  279.         if(PlayerInfo[playerid][BIA] == 10)
  280.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  281.         if(PlayerInfo[playerid][BIA] == 11)
  282.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  283.         if(PlayerInfo[playerid][BIA] == 12)
  284.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  285.         if(PlayerInfo[playerid][BIA] == 13)
  286.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  287.         if(PlayerInfo[playerid][BIA] == 14)
  288.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);*/
  289.         if(PlayerInfo[playerid][BIA]/* == 15*/)// checks if BIA rank is higher than 0
  290.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {ffff00}%s {4015C2}Has gone {ffff00}Away from keyboard!",kuldoneve, playerid);
  291.         SendClientMessageToAll(COLOR_BLUE, string);
  292.         CMDMessageToBIA(playerid, "BiAAfk");
  293.         BIADutyPlaying[playerid] = 1;
  294.     } else return SendClientMessage(playerid,COLOR_RED,"ERROR: You need to be [BiA]Member to use this command.");
  295.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  296.     return 1;
  297. }
  298. CMD:biaback(playerid,params[]) {
  299.     if(PlayerInfo[playerid][BIA] >= 1) {
  300.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaback again!");
  301.         new string[128],kuldoneve[MAX_PLAYER_NAME];
  302.         Delete3DTextLabel(AFK[playerid]);
  303.         GameTextForPlayer(playerid,"~g~ Welcome Back", 5000, 1);
  304.         TogglePlayerControllable(playerid, 1);
  305.         GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
  306.         if(PlayerInfo[playerid][BIA] == 1)
  307.         //BiA]Brothers in Arms Member [KOD]$uperman has   Returned
  308.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  309.         if(PlayerInfo[playerid][BIA] == 2)
  310.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  311.         if(PlayerInfo[playerid][BIA] == 3)
  312.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  313.         if(PlayerInfo[playerid][BIA] == 4)
  314.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  315.         if(PlayerInfo[playerid][BIA] == 5)
  316.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  317.         if(PlayerInfo[playerid][BIA] == 6)
  318.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  319.         if(PlayerInfo[playerid][BIA] == 7)
  320.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  321.         if(PlayerInfo[playerid][BIA] == 8)
  322.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member{17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  323.         if(PlayerInfo[playerid][BIA] == 9)
  324.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s{4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  325.         if(PlayerInfo[playerid][BIA] == 10)
  326.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  327.         if(PlayerInfo[playerid][BIA] == 11)
  328.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  329.         if(PlayerInfo[playerid][BIA] == 12)
  330.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  331.         if(PlayerInfo[playerid][BIA] == 13)
  332.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  333.         if(PlayerInfo[playerid][BIA] == 14)
  334.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {17DB09}%s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  335.         if(PlayerInfo[playerid][BIA] == 15)
  336.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member{17DB09} %s {4015C2}is now {17DB09}BACK",kuldoneve, playerid);
  337.         SendClientMessageToAll(COLOR_BLUE, string);
  338.         CMDMessageToBIA(playerid, "BiABack");
  339.         BIADutyPlaying[playerid] = 0;
  340.     } else return SendClientMessage(playerid,COLOR_RED,"ERROR: You need to be [BiA]Member to use this command.");
  341.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  342.     return 1;
  343. }
  344. CMD:biaru(playerid, params[])
  345. {
  346.     ShowPlayerDialog(playerid, 5385, DIALOG_STYLE_MSGBOX, "BiA Main Rules",
  347.     "Dont abuse weaps cmd\n\
  348.     Dont use foul language\n\
  349.     Dont use hacks or illegal mods while your in team\n\
  350.     Dont disrespect any other member's even if they are lower than you or kill any of your team mates\n\
  351.     Dont disrespect chief or ultra brother\n\
  352.     Note: If you want to apply for BiA:\n\
  353.     1- Register at Bttdm.com (if your not registered)\n\
  354.     2- look for BiA Crew Board at the donators group and make an app\n\
  355.     3- Wait Patiently for the Management's reply on your app and members opnions.", "Ok", "");
  356.     new string[256];
  357.     if(PlayerInfo[playerid][BIA] == 0) format(string,sizeof(string),"[Non - BiA Member] {FF0000}Unknown {81DEE9}| Rank: {FF0000}(%d) {81DEE9}| Command: {FF0000}BiARU",pName(playerid),PlayerInfo[playerid][BIA]), MessageToBIA(-1, string);
  358.     CMDMessageToBIA(playerid, "BiARU");
  359.     return 1;
  360. }
  361. CMD:biaweaps(playerid,params[]) {
  362.     if(GetPVarInt(playerid, "WEAPSABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaweaps again!");
  363.     if(PlayerInfo[playerid][BIA] >= 1) {
  364.         GivePlayerWeapon(playerid,26,9000); GivePlayerWeapon(playerid,31,9000); GivePlayerWeapon(playerid,24,9000);
  365.         GivePlayerWeapon(playerid,34,9000); GivePlayerWeapon(playerid,32,9000); GivePlayerWeapon(playerid, 43, 9000);
  366.         GivePlayerWeapon(playerid,8,9000); GivePlayerWeapon(playerid, 46, 9000);
  367.         new string[128],kuldoneve[MAX_PLAYER_NAME];
  368.         GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
  369.         //[BiA]Brothers in Arms Member [KOD]$uperman has used /biaweaps
  370.         format(string, sizeof(string), "{4015C2}[BiA]Brothers in Arms Member {FF0000}%s {4015C2}has used BiA Weapons {FF0000}/biaweaps.",/*GetBiARank(playerid), */kuldoneve, playerid);
  371.         SendClientMessageToAll(COLOR_BLUE, string);
  372.         CMDMessageToBIA(playerid,"BiAWeaps");
  373.         SetPVarInt(playerid, "WEAPSABUSE", GetTickCount()+5000);
  374.     } else return SendClientMessage(playerid,COLOR_RED,"ERROR: You must be a [BiA] member to use this command");
  375.     return 1;
  376. }
  377. #define MAX_BIANL 7
  378. new BiANL[MAX_REPORTS][128];
  379.  
  380. CMD:setnlbia(playerid,params[]) {
  381.     if(PlayerInfo[playerid][BIA] >= 14)
  382.     {
  383.         if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /setnlbia [text]");
  384.         new str[128];
  385.         format(str, sizeof(str), "{B4B7B7}[NewNote] {FF0000}'%s' {B4B7B7}| By: {FF0000}%s(%d)", params, pName(playerid), playerid);
  386.         MessageToBIA(COLOR_WHITE,str);
  387.         format(str, sizeof(str), "[Note] ~ '%s' by %s", params, pName(playerid));
  388.         for(new i = 1; i < MAX_BIANL-1; i++) BiANL[i] = BiANL[i+1];
  389.         BiANL[MAX_BIANL-1] = str;
  390.     } else return SendClientMessage(playerid, red, "ERROR: You need to be [BiA] Member to use this command.");
  391.     return 1;
  392. }
  393. CMD:clearbianl(playerid, params[])
  394. {
  395.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "ERROR: You need to be logged in to use this command.");
  396.     if(PlayerInfo[playerid][BIA] >= 14)
  397.     {
  398.         for(new i = 1; i < MAX_BIANL; i++) BiANL[i] = "<none>";
  399.         CMDMessageToBIA(playerid, "ClearBiANL");
  400.         new string[128]; format(string, sizeof string, "{FF0000}%s(%d) {00FFFF}has cleared BiA notes list.", pName(playerid), playerid);
  401.         MessageToBIA(-1, string);
  402.     }
  403.     return 1;
  404. }
  405. CMD:bianl(playerid,params[]) {
  406.     #pragma unused params
  407.     if(PlayerInfo[playerid][BIA] >= 1) {
  408.         new BNCOUNT;
  409.         SendClientMessage(playerid, grey, " ");
  410.         SendClientMessage(playerid, grey, "_______________ ~ BiA Note list ~ _______________");
  411.         SendClientMessage(playerid, grey, " ");
  412.         for(new i = 1; i < MAX_BIANL; i++)
  413.         {
  414.             if(strcmp(BiANL[i], "<none>", true) != 0) { BNCOUNT++; SendClientMessage(playerid,0x81DEE9FF,BiANL[i]); }
  415.         }
  416.         if(BNCOUNT == 0) SendClientMessage(playerid,red,"There have been no note in the list.");
  417.         SendClientMessage(playerid, grey, "_______________________________________________");
  418.         SendClientMessage(playerid, grey, " ");
  419.     } else SendClientMessage(playerid,red,"ERROR: You need to be [BiA] Member to use this command.");
  420.     return 1;
  421. }
  422. CMD:settempbia(playerid,params[]) {
  423.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /settempbia again!");
  424.     if(PlayerInfo[playerid][LoggedIn] == 1) {
  425.             if(PlayerInfo[playerid][BIA] < 9) return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 9+ to use this command", "OK", "Cancel");
  426.             new tmp[128], tmp2[128], Index;     tmp = strtok(params,Index), tmp2 = strtok(params,Index);
  427.             if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /settemtbia [playerid] [level]");
  428.             new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
  429.             player1 = strval(tmp);
  430.             if(isnull(tmp2)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /settempbia [playerid] [level]");
  431.             level = strval(tmp2);
  432.  
  433.             if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
  434.                 if(PlayerInfo[player1][LoggedIn] == 1) {
  435.                     if(level > 9 ) return SendClientMessage(playerid,0xFF0000AA,"ERROR: Max [BIA] temp level is 9");
  436.                     if(level == PlayerInfo[player1][BIA]) return SendClientMessage(playerid,0xFF0000AA,"ERROR: Player is already this [BIA] level");
  437.                     CMDMessageToBIA(playerid,"SetTempBiA");
  438.                     GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
  439.                     new year,month,day;   getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
  440.  
  441.                     if(level > 0) format(string,sizeof(string)," %s has set you're [BiA] Status to level %d",adminname, level);
  442.                     else format(string,sizeof(string)," %s has set youre [BiA] Status to level %d",adminname, level);
  443.                     SendClientMessage(player1,0x00FFFFAA,string);
  444.  
  445.                     if(level > PlayerInfo[player1][BIA]) GameTextForPlayer(player1,"~g~[BiA] LEVEL UP", 2000, 3);
  446.                     else GameTextForPlayer(player1,"~r~[BiA] LEVEL DOWN", 2000, 3);
  447.  
  448.                     format(string,sizeof(string),"You have made %s [BiA] Temp Level %d on %d/%d/%d at %d:%d:%d", playername, level, day, month, year, hour, minute, second); SendClientMessage(playerid,0x00FFFFAA,string);
  449.                     format(string,sizeof(string),"%s has made %s [BiA] Temp Level %d on %d/%d/%d at %d:%d:%d",adminname, playername, level, day, month, year, hour, minute, second);
  450.                     PlayerInfo[player1][BIA] = level;
  451.                     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  452.                     return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  453.                 } else return SendClientMessage(playerid,0xFF0000AA,"ERROR: Player must be registered and logged in to be setted as BiA member");
  454.             } else return SendClientMessage(playerid, 0xFF0000AA, "Player is not connected");
  455.     } else return SendClientMessage(playerid,0xFF0000AA,"ERROR: You must be logged in to use this commands");
  456. }
  457. CMD:setbia(playerid,params[]) {
  458.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /setbia again!");
  459.     if(PlayerInfo[playerid][LoggedIn] == 1) {
  460.         if(IsPlayerAdmin(playerid) && PlayerInfo[playerid][Level] >= 8 || PlayerInfo[playerid][BIA] >= 10)
  461.         {
  462.             new tmp[128], tmp2[128], Index;     tmp = strtok(params,Index), tmp2 = strtok(params,Index);
  463.             if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /setbia [playerid] [level]");
  464.             new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
  465.             player1 = strval(tmp);
  466.             if(isnull(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setbia [playerid] [level]");
  467.             level = strval(tmp2);
  468.  
  469.             if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
  470.                 if(PlayerInfo[player1][LoggedIn] == 1) {
  471.                     if(level > 15 ) return SendClientMessage(playerid,red,"ERROR: Max BiA Level is 15");
  472.                     if(level == PlayerInfo[player1][BIA]) return SendClientMessage(playerid,red,"ERROR: Player is already this BiA level");
  473.                     MessageToAdmins(playerid,"SetBiA");
  474.                     CMDMessageToBIA(playerid, "SetBiA");
  475.                     GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
  476.                     new year,month,day;   getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
  477.  
  478.                     if(level > 0) format(string,sizeof(string)," %s has set you're [BiA] Status to level %d",adminname, level);
  479.                     else format(string,sizeof(string)," %s has set youre [BiA] Status to level %d",adminname, level);
  480.                     SendClientMessage(player1,yellow,string);
  481.  
  482.                     if(level > PlayerInfo[player1][BIA]) GameTextForPlayer(player1,"~g~[BiA] LEVEL UP", 2000, 3);
  483.                     else GameTextForPlayer(player1,"~r~[BiA] LEVEL DOWN", 2000, 3);
  484.  
  485.                     format(string,sizeof(string),"You have made %s [BiA] Level %d on %d/%d/%d at %d:%d:%d", playername, level, day, month, year, hour, minute, second); SendClientMessage(playerid,yellow,string);
  486.                     format(string,sizeof(string),"%s has made %s [BiA] Level %d on %d/%d/%d at %d:%d:%d",adminname, playername, level, day, month, year, hour, minute, second);
  487.                     dUserSetINT(PlayerName2(player1)).("BIA",(level));
  488.                     PlayerInfo[player1][BIA] = level;
  489.                     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  490.                     return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  491.                 } else return SendClientMessage(playerid,red,"ERROR: Player must be registered and logged in to be set as a [BiA] member");
  492.             } else return SendClientMessage(playerid, red, "Player is not connected");
  493.         } else return SendClientMessage(playerid,red,"ERROR: you do not have the privilegie to set [BiA]'s");
  494.     } else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
  495. }
  496.  
  497. // BiA team privet message
  498. CMD:bia(playerid,params[]) {
  499.     #pragma unused params
  500.     if(PlayerInfo[playerid][LoggedIn] == 1) {
  501.         if(PlayerInfo[playerid][BIA] >= 1) {
  502.             new string[128];
  503.             format(string, sizeof(string), "{037683}[BiAChat] {00FFFF}| New Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  504.             if(PlayerInfo[playerid][BIA] >= 2)
  505.                 format(string, sizeof(string), "{037683}[BiAChat] {8B008B}| Young Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  506.             if(PlayerInfo[playerid][BIA] >= 3)
  507.                 format(string, sizeof(string), "{037683}[BiAChat] {FF00FF}| Mini Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  508.             if(PlayerInfo[playerid][BIA] >= 4)
  509.                 format(string, sizeof(string), "{037683}[BiAChat] {FF0000}| Senior Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  510.             if(PlayerInfo[playerid][BIA] >= 5)
  511.                 format(string, sizeof(string), "{037683}[BiAChat] {FFFF00}| Trustfull Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  512.             if(PlayerInfo[playerid][BIA] >= 6)
  513.                 format(string, sizeof(string), "{037683}[BiAChat] {A52A2A}| Loyal Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  514.             if(PlayerInfo[playerid][BIA] >= 7)
  515.                 format(string, sizeof(string), "{037683}[BiAChat] {FF8000}| Old Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  516.             if(PlayerInfo[playerid][BIA] >= 8)
  517.                 format(string, sizeof(string), "{037683}[BiAChat] {A52A2A}| Special Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  518.             if(PlayerInfo[playerid][BIA] >= 9)
  519.                 format(string, sizeof(string), "{037683}[BiAChat] {105F00}| Vice In Charge Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  520.             if(PlayerInfo[playerid][BIA] >= 10)
  521.                 format(string, sizeof(string), "{037683}[BiAChat] {000D5F}| Vice Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  522.             if(PlayerInfo[playerid][BIA] >= 11)
  523.                 format(string, sizeof(string), "{037683}[BiAChat] {FF00FF}| Combat Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  524.             if(PlayerInfo[playerid][BIA] >= 12)
  525.                 format(string, sizeof(string), "{037683}[BiAChat] {01DF01}| Top Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  526.             if(PlayerInfo[playerid][BIA] >= 13)
  527.                 format(string, sizeof(string), "{037683}[BiAChat] {190707}| Head Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  528.             if(PlayerInfo[playerid][BIA] >= 14)
  529.                 format(string, sizeof(string), "{037683}[BiAChat] {DF01A5}| Ultra Brother | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  530.             if(PlayerInfo[playerid][BIA] >= 15)
  531.                 format(string, sizeof(string), "{0000FF}[BiAChat] {0000FF}| Chief | %s: {77FE85}%s", PlayerName2(playerid), params[0] );
  532.             MessageToBIA(0x037683FF,string);
  533.         } else return SendClientMessage(playerid,red,"ERROR: You need to be [BiA] Member to use this command");
  534.     } else return SendClientMessage(playerid,red,"ERROR: You need to be Logged in to use this command");
  535.     return 1;
  536. }
  537. CMD:biah(playerid,params[]) {
  538.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biah again!");
  539.     if(PlayerInfo[playerid][BIA] >= 1)
  540.     {
  541.         CMDMessageToBIA(playerid, "BiAH");
  542.         new string[128];
  543.         //[BiA][KOD]$uperman is in need of Help!
  544.         if(PlayerInfo[playerid][BIA] == 15)
  545.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  546.         if(PlayerInfo[playerid][BIA] == 14)
  547.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  548.         if(PlayerInfo[playerid][BIA] == 13)
  549.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  550.         if(PlayerInfo[playerid][BIA] == 12)
  551.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  552.         if(PlayerInfo[playerid][BIA] == 10)
  553.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  554.         if(PlayerInfo[playerid][BIA] == 9)
  555.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  556.         if(PlayerInfo[playerid][BIA] == 8)
  557.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  558.         if(PlayerInfo[playerid][BIA] == 7)
  559.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  560.         if(PlayerInfo[playerid][BIA] == 6)
  561.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  562.         if(PlayerInfo[playerid][BIA] == 5)
  563.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  564.         if(PlayerInfo[playerid][BIA] == 4)
  565.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  566.         if(PlayerInfo[playerid][BIA] == 3)
  567.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  568.         if(PlayerInfo[playerid][BIA] == 2)
  569.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  570.         if(PlayerInfo[playerid][BIA] == 1)
  571.         format(string, sizeof(string), "{1DCBDE}[BiA] %s is in need of {FF0000}Help", PlayerName2(playerid), params[0] );
  572.         MessageToBIA(red,string);
  573.         SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  574.     } else return SendClientMessage(playerid,red,"ERROR: You need to be a [BiA] member to use this command");
  575.     return 1;
  576. }
  577. GetBiARank(playerid)
  578. {
  579.     new handle[500], string[128];
  580.     switch(PlayerInfo[playerid][BIA])
  581.     {
  582.         case 1: {
  583.             format(string, sizeof string, "New Brother");
  584.             strcat(handle, string);
  585.         }
  586.         case 2: {
  587.             format(string, sizeof string, "Young Brother");
  588.             strcat(handle, string);
  589.         }
  590.         case 3: {
  591.             format(string, sizeof string, "Mini Brother");
  592.             strcat(handle, string);
  593.         }
  594.         case 4: {
  595.             format(string, sizeof string, "Senior Brother");
  596.             strcat(handle, string);
  597.         }
  598.         case 5: {
  599.             format(string, sizeof string, "Trustfull Brother");
  600.             strcat(handle, string);
  601.         }
  602.         case 6: {
  603.             format(string, sizeof string, "Loyal Brother");
  604.             strcat(handle, string);
  605.         }
  606.         case 7: {
  607.             format(string, sizeof string, "Old Brother");
  608.             strcat(handle, string);
  609.         }
  610.         case 8: {
  611.             format(string, sizeof string, "Special Brother");
  612.             strcat(handle, string);
  613.         }
  614.         case 9: {
  615.             format(string, sizeof string, "Vice In Charge Brother");
  616.             strcat(handle, string);
  617.         }
  618.         case 10: {
  619.             format(string, sizeof string, "Vice Brother");
  620.             strcat(handle, string);
  621.         }
  622.         case 11: {
  623.             format(string, sizeof string, "Combat Brother");
  624.             strcat(handle, string);
  625.         }
  626.         case 12: {
  627.             format(string, sizeof string, "Top Brother");
  628.             strcat(handle, string);
  629.         }
  630.         case 13: {
  631.             format(string, sizeof string, "Head Brother");
  632.             strcat(handle, string);
  633.         }
  634.         case 14: {
  635.             format(string, sizeof string, "Ultra Brother");
  636.             strcat(handle, string);
  637.         }
  638.         case 15: {
  639.             format(string, sizeof string, "Chief");
  640.             strcat(handle, string);
  641.         }
  642.     }
  643.     return handle;
  644. }
  645. CMD:biahu(playerid,params[]) {
  646.     #pragma unused params
  647.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  648.     if(PlayerInfo[playerid][BIA] >= 1) {
  649.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biahu again!");
  650.         if (!IsPlayerInAnyVehicle(playerid)) {
  651.             CarSpawner(playerid,425);
  652.             CMDMessageToBIA(playerid,"BiAHunter");
  653.             return SendClientMessage(playerid,yellow,"Enjoy your hunter.");
  654.         } else return SendClientMessage(playerid,red,"Error: You already have a vehicle");
  655.     } else return SendClientMessage(playerid,red,"ERROR: You need to be [BiA] level 1+ to use this command");
  656. }
  657. CMD:biay(playerid,params[]) {
  658.     #pragma unused params
  659.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  660.     if(PlayerInfo[playerid][BIA] >= 1) {
  661.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biay again!");
  662.         if (!IsPlayerInAnyVehicle(playerid)) {
  663.             CarSpawner(playerid,520);
  664.             CMDMessageToBIA(playerid,"BiAHydra");
  665.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  666.             return SendClientMessage(playerid,yellow,"Enjoy your hydra.");
  667.         } else return SendClientMessage(playerid,red,"Error: You already have a vehicle");
  668.     } else return SendClientMessage(playerid,red,"ERROR: You need to be [BiA] level 1+ to use this command");
  669. }
  670. CMD:biacar1(playerid,params[]) {
  671.     #pragma unused params
  672.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar1 again!");
  673.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  674.         if(PlayerInfo[playerid][BIA] >= 1) {
  675.         if (!IsPlayerInAnyVehicle(playerid)) {
  676.             CarSpawner(playerid,541);
  677.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  678.             CMDMessageToBIA(playerid,"BiACar1");
  679.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  680.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BIA bullet!");
  681.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  682.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  683. }
  684.  
  685. CMD:biacar2(playerid,params[]) {
  686.     #pragma unused params
  687.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar2 again!");
  688.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  689.         if(PlayerInfo[playerid][BIA] >= 1) {
  690.         if (!IsPlayerInAnyVehicle(playerid)) {
  691.             CarSpawner(playerid,557);
  692.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  693.             CMDMessageToBIA(playerid,"BiACar2");
  694.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  695.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BIA Monster Truck A");
  696.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  697.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  698. }
  699. CMD:biacar3(playerid,params[]) {
  700.     #pragma unused params
  701.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar3 again!");
  702.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  703.         if(PlayerInfo[playerid][BIA] >= 1) {
  704.         if (!IsPlayerInAnyVehicle(playerid)) {
  705.             CarSpawner(playerid,560);
  706.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  707.             CMDMessageToBIA(playerid,"BiACar3");
  708.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  709.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BiA Sultan.");
  710.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  711.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  712. }
  713. CMD:biacar4(playerid,params[]) {
  714.     #pragma unused params
  715.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar4 again!");
  716.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  717.         if(PlayerInfo[playerid][BIA] >= 1) {
  718.         if (!IsPlayerInAnyVehicle(playerid)) {
  719.             CarSpawner(playerid,411);
  720.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  721.             CMDMessageToBIA(playerid,"BiACar4");
  722.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  723.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BiA Infernus.");
  724.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  725.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  726. }
  727. CMD:biacar5(playerid,params[]) {
  728.     #pragma unused params
  729.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar5 again!");
  730.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  731.         if(PlayerInfo[playerid][BIA] >= 1) {
  732.         if (!IsPlayerInAnyVehicle(playerid)) {
  733.             CarSpawner(playerid,580);
  734.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  735.             CMDMessageToBIA(playerid,"BiACar5");
  736.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  737.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BiA Stafford.");
  738.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  739.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  740. }
  741. CMD:biacar6(playerid,params[]) {
  742.     #pragma unused params
  743.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar6 again!");
  744.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  745.         if(PlayerInfo[playerid][BIA] >= 3) {
  746.         if (!IsPlayerInAnyVehicle(playerid)) {
  747.             CarSpawner(playerid,502);
  748.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  749.             CMDMessageToBIA(playerid,"BiACar6");
  750.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  751.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BiA Hotring A.");
  752.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  753.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  754. }
  755. CMD:biacar7(playerid,params[]) {
  756.     #pragma unused params
  757.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar7 again!");
  758.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  759.         if(PlayerInfo[playerid][BIA] >= 3) {
  760.         if (!IsPlayerInAnyVehicle(playerid)) {
  761.             CarSpawner(playerid,451);
  762.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  763.             CMDMessageToBIA(playerid,"BiACar7");
  764.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  765.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BiA Turismo.");
  766.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  767.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  768. }
  769. CMD:biacar8(playerid,params[]) {
  770.     #pragma unused params
  771.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biacar8 again!");
  772.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  773.         if(PlayerInfo[playerid][BIA] >= 3) {
  774.         if (!IsPlayerInAnyVehicle(playerid)) {
  775.             CarSpawner(playerid,495);
  776.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  777.             CMDMessageToBIA(playerid,"BiACar8");
  778.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  779.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned BiA Sandking.");
  780.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  781.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 1+ to use this command", "OK", "Cancel");
  782. }
  783. CMD:biab(playerid,params[]) {
  784.     #pragma unused params
  785.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biab again!");
  786.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  787.         if(PlayerInfo[playerid][BIA] >= 2) {
  788.         if (!IsPlayerInAnyVehicle(playerid)) {
  789.             CarSpawner(playerid,522);
  790.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  791.             CMDMessageToBIA(playerid,"BiABike");
  792.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  793.             return SendClientMessage(playerid,0x00FFFFAA,"You spawned BiA NRG-500!");
  794.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  795.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 2+ to use this command", "OK", "Cancel");
  796. }
  797. CMD:biaboat(playerid,params[]) {
  798.     #pragma unused params
  799.         if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biaboat again!");
  800.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  801.         if(PlayerInfo[playerid][BIA] >= 2) {
  802.         if (!IsPlayerInAnyVehicle(playerid)) {
  803.             CarSpawner(playerid, 493);
  804.             AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  805.             CMDMessageToBIA(playerid,"BiABoat");
  806.             SetPVarInt(playerid, "BIAABUSE", GetTickCount()+5000);
  807.             return SendClientMessage(playerid,0x00FFFFAA,"You spawned BiA Jetmax!");
  808.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  809.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [BiA] level 2+ to use this command", "OK", "Cancel");
  810. }
  811. CMD:biac(playerid, params[])
  812. {
  813.     if(PlayerInfo[playerid][BIA] >= 1) {
  814.     if(GetPVarInt(playerid, "BIAABUSE") > GetTickCount())return SendClientMessage(playerid, red, "You must wait before using /biac again!");
  815.     SetPlayerColor(playerid, black);
  816.     CMDMessageToBIA(playerid, "BiAc");
  817.     SendClientMessage(playerid, red, "You setted your color to black!");
  818.     SetPVarInt(playerid, "BIAABUSE", GetTickCount()+2000);
  819.     } else return SendClientMessage(playerid, red, "You need to be BiA member to use that command!");
  820.     return 1;
  821. }
  822.  
  823. CMD:biapack(playerid,params[]) {
  824.     #pragma unused params
  825.     if(PlayerInfo[playerid][BIA] >= 1) {
  826.     SetPlayerColor(playerid,0x001CED);
  827.     GivePlayerWeapon(playerid,31,1000); GivePlayerWeapon(playerid,24,1000);
  828.     GivePlayerWeapon(playerid,32,1000); GivePlayerWeapon(playerid,16,1000);
  829.     GivePlayerWeapon(playerid,26,1000); GivePlayerWeapon(playerid,34,1000);
  830.     SendClientMessage(playerid,0xFFFF00AA ,"You have setted your colour to dark blue");
  831.     CMDMessageToBIA(playerid,"BiAPack");
  832.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be a BiA member to use this command", "OK", "Cancel");
  833.     return 1;
  834. }
  835.  
  836. CMD:biadeagle(playerid,params[]) {
  837.     if(PlayerInfo[playerid][BIA] >= 1) {
  838.     SendClientMessage(playerid,0x4015C2,"Enjoy With your BiA Deagle");
  839.     CMDMessageToBIA(playerid, "/biadeagle");
  840.     ResetPlayerWeapons(playerid);
  841.     GivePlayerWeapon(playerid,24,6000);
  842.     CMDMessageToBIA(playerid, "BiADEAGLE");return 1;
  843.     } else return SendClientMessage(playerid,red,"ERROR: You need to be a BiA Member to use this command");
  844. //}
  845. }
  846. CMD:biasawn(playerid,params[]) {
  847.     if(PlayerInfo[playerid][BIA] >= 1) {
  848.     SendClientMessage(playerid,0x4015C2,"Enjoy With your BiA Sawn-off");
  849.     CMDMessageToBIA(playerid, "/biasawn");
  850.     ResetPlayerWeapons(playerid);
  851.     GivePlayerWeapon(playerid,26,6000);
  852.     CMDMessageToBIA(playerid, "BiASAWN");return 1;
  853.     } else return SendClientMessage(playerid,red,"ERROR: You need to be a BiA Member to use this command");
  854. //}
  855. }
  856. CMD:biam4(playerid,params[]) {
  857.     if(PlayerInfo[playerid][BIA] >= 1) {
  858.     SendClientMessage(playerid,0x4015C2,"Enjoy With your BiA M4");
  859.     CMDMessageToBIA(playerid, "/biam4");
  860.     ResetPlayerWeapons(playerid);
  861.     GivePlayerWeapon(playerid,31,6000);
  862.     CMDMessageToBIA(playerid, "BiAM4");return 1;
  863.     } else return SendClientMessage(playerid,red,"ERROR: You need to be a BiA Member to use this command");
  864. //}
  865. }
  866. CMDMessageToBIA(playerid,command[])
  867. {
  868.     new string[128];
  869.     GetPlayerName(playerid,string,sizeof(string));
  870.     format(string,sizeof(string),"[BiA Member] {FF0000}'%s' {81DEE9}| Rank: {FF0000}(%d) {81DEE9}| Command: {FF0000}%s",string,PlayerInfo[playerid][BIA],command);
  871.     MessageToBIA(0x81DEE9FF,string);
  872.     return 1;
  873. }
  874. MessageToBIA(color,const string[])
  875. {
  876.     for(new i = 0; i < MAX_PLAYERS; i++)
  877.     {
  878.         if(IsPlayerConnected(i) == 1 && PlayerInfo[i][BIA] >= 1 && PlayerInfo[i][LoggedIn] == 1)
  879.         {
  880.             SendClientMessage(i, color, string);
  881.         }
  882.     }
  883.     return 1;
  884. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top