arturo24

Navy Seals CMDs by Knyazev

Jun 19th, 2022 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 48.53 KB | None | 0 0
  1. //NS COMMANDS! by Knyazev aka SexyArturo
  2.     CMD:nshelp(playerid, params[])
  3. {
  4.     #pragma unused params
  5.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  6.     if(PlayerInfo[playerid][NS] >= 1) {
  7.         new string[1900];
  8.         strcat(string, "\n{A4FF00}Navy Seals General CMDs Rank (1/11): ", 1900 );
  9.         strcat(string, "\n{FFFFFF}/ns - /nsh - /nsay - /nsskin(1/3) - /nsafk - /nsback", 1900 );
  10.         strcat(string, "\n{FFFFFF}/nsmembers - /nsrules - /nsc(1/8) - /nsbase - /nspark", 1900 );
  11.         strcat(string, "\n{7F8575}Navy Seals Normal CMDs (Chat/Colours/Teleports/AFK System)", 1900 );
  12.         strcat(string, "\n{A4FF00}Navy Seals Vehicle CMDs Rank (1/11): ", 1900 );
  13.         strcat(string, "\n{FFFFFF}/nshunter - /nshydra - /nsbike - /nscar(1/3) - /nsheli - /nsboat - /nstune", 1900 );
  14.         strcat(string, "\n{7F8575}Navy Seals Clan Official Car & Tune System ", 1900 );
  15.         strcat(string, "\n{A4FF00}Navy Seals Weapons CMDs Rank (1/11): ", 1900 );
  16.         strcat(string, "\n{FFFFFF}/nss - /nsd - /nssp /nsm4 - /nsu - /nsweaps - /nsweaps2", 1900 );
  17.         strcat(string, "\n{7F8575}Navy Seals Clan individually & as a whole Official Weapons.", 1900 );
  18.         strcat(string, "\n{A4FF00}Navy Seals Management CMDs Rank (7-11): ", 1900 );
  19.         strcat(string, "\n{FFFFFF}/nsm - /settempns - /nsann - /setns - /osetns", 1900 );
  20.         strcat(string, "\n{7F8575}Navy Seals Clan - Management Commands.", 1900 );
  21.         strcat(string, "\n\n{7F8575}Scripted By {ACBA12}Knyazev aka SexyArturo", 1900 );
  22.         ShowPlayerDialog(playerid,1235, DIALOG_STYLE_MSGBOX, "Navy Seals Official Commands", string, "OK","Cancel");
  23.     } else return SendClientMessage(playerid,COLOR_RED, "ERROR: You need to be a NS member to use this command");
  24.     return 1;}
  25. //new nsawaystatus[MAX_PLAYERS] = 0;
  26. static NSDutyPlaying[MAX_PLAYERS];
  27. CMD:nsmembers(playerid,params[])
  28. {
  29.     #pragma unused params
  30.     new count = 0;
  31.     new string[128];
  32.     new ChangeColor;
  33.     new NSR[128];
  34.     new NSDUTY[128];
  35.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  36.     SendClientMessage(playerid, 0xFF0000AA, " ");
  37.     SendClientMessage(playerid, 0x7F8575AA, "__________ |- Online {FAE5D3}Navy Seals {7F8575}Members -| __________");
  38.     SendClientMessage(playerid, 0xFF0000AA, " ");
  39.     for(new i = 0; i < MAX_PLAYERS; i++)
  40.     {
  41.         if(!IsPlayerConnected(i)) continue;
  42.         if(PlayerInfo[i][LoggedIn] == 0) continue;
  43.         if(PlayerInfo[i][NS] == 0) continue;
  44.  
  45.         if(PlayerInfo[i][NS] == 1) { NSR = "Newbie"; ChangeColor = 0x0054E8FF; }
  46.         if(PlayerInfo[i][NS] == 2) { NSR = "Corporal"; ChangeColor = 0x0054E8FF; }
  47.         if(PlayerInfo[i][NS] == 3) { NSR = "Sergeant"; ChangeColor = 0x0054E8FF; }
  48.         if(PlayerInfo[i][NS] == 4) { NSR = "First Sergeant"; ChangeColor = 0x0054E8FF; }
  49.         if(PlayerInfo[i][NS] == 5) { NSR = "Lieutenant"; ChangeColor = 0x0054E8FF; }
  50.         if(PlayerInfo[i][NS] == 6) { NSR = "High Roller"; ChangeColor = 0x0054E80FF; }
  51.         if(PlayerInfo[i][NS] == 7) { NSR = "Commander"; ChangeColor = 0x00009DFF; }
  52.         if(PlayerInfo[i][NS] == 8) { NSR = "Lieutenant Colonel"; ChangeColor = 0x00009DFF; }
  53.         if(PlayerInfo[i][NS] == 9) { NSR = "General"; ChangeColor = 0x000060FF; }
  54.         if(PlayerInfo[i][NS] == 10) { NSR = "Vice Captain"; ChangeColor = 0x000060FF; }
  55.         if(PlayerInfo[i][NS] == 11) { NSR = "President Captain"; ChangeColor = 0x000060FF; }
  56.         if(NSDutyPlaying[i] == 0) NSDUTY = "{FAE5D3}Playing!";
  57.         if(NSDutyPlaying[i] == 1) NSDUTY = "{FF0000}AFK!";
  58.  
  59.         format(string, 128, "Rank: %d - {%06x} %s (Id:%i) - {%06x}| %s | - %s",PlayerInfo[i][NS], ChangeColor >>> 8, PlayerName2(i), i, ChangeColor >>> 8, NSR, NSDUTY);
  60.         SendClientMessage(playerid, ChangeColor, string);
  61.         count++;
  62.     }
  63.     if (count == 0) SendClientMessage(playerid,0xFAE5D3AA,"No Online Navy Seals Members.");
  64.     SendClientMessage(playerid, 0x7F8575AA, "______________________________________________");
  65.     return 1;
  66. }
  67. CMD:nsboat(playerid,params[]) {
  68.     #pragma unused params
  69.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  70.         if(PlayerInfo[playerid][NS] >= 1) {
  71.         if (!IsPlayerInAnyVehicle(playerid)) {
  72.             CarSpawner(playerid,493);
  73.             CMDMessageToNS(playerid,"/nsboat");
  74.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Jetmax");
  75.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  76.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  77. }
  78. CMD:nsbase(playerid,params[]) {
  79.     #pragma unused params
  80.     if(PlayerInfo[playerid][NS] >= 1) {
  81.     if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
  82.     TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
  83.     tseconds[playerid] = 6;
  84.     format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  85.     if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
  86.     Tx[playerid] =-3556.7;
  87.     Ty[playerid] =-475.7;
  88.     Tz[playerid] =8.8;
  89.     Ti[playerid] = 0;
  90.     new string[128];
  91.     new dsname[MAX_PLAYER_NAME];
  92.     format(telestring,43,"~g~] Navy Seals Base ]");
  93.     GetPlayerName(playerid, dsname, sizeof(dsname));
  94.     format(string, sizeof(string), "{FF0000}[Navy Seals]:{FAE5D3} %s has teleported to Navy Seals Base", dsname);
  95.     SendClientMessageToAll(red, string);
  96.     SetTimerEx("setstunt",3000,0,"i", playerid);
  97.     } else return SendClientMessage(playerid,red,"ERROR: You need to be A [NS] Member to use this command.");
  98.     return 1;
  99. }
  100. CMD:nspark(playerid,params[]) {
  101.     #pragma unused params
  102.     if(PlayerInfo[playerid][NS] >= 1) {
  103.     if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
  104.     TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
  105.     tseconds[playerid] = 1;
  106.     format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  107.     if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
  108.     Tx[playerid] =-3731.159;
  109.     Ty[playerid] =-603.262;
  110.     Tz[playerid] =-26.181;
  111.     Ti[playerid] = 0;
  112.     new string[128];
  113.     new dsname[MAX_PLAYER_NAME];
  114.     format(telestring,43,"~g~] Navy Seals Parking ]");
  115.     GetPlayerName(playerid, dsname, sizeof(dsname));
  116.     format(string, sizeof(string), "{FF0000}[Navy Seals]:{FAE5D3} %s has teleported to Navy Seals Parking", dsname);
  117.     SendClientMessageToAll(red, string);
  118.     SetTimerEx("setstunt",3000,0,"i", playerid);
  119.     } else return SendClientMessage(playerid,red,"ERROR: You need to be A [NS] Member to use this command.");
  120.     return 1;
  121. }
  122. CMD:nsskin1(playerid,params[]) {
  123.     #pragma unused params
  124.     if(PlayerInfo[playerid][NS] >= 1) {
  125.     SetPlayerSkin(playerid,212);
  126.     CMDMessageToNS(playerid,"/nsskin1");
  127.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [NS] Member to use this command", "OK", "");
  128.     return 1;
  129. }
  130. CMD:nsskin2(playerid,params[]) {
  131.     #pragma unused params
  132.     if(PlayerInfo[playerid][NS] >= 1) {
  133.     SetPlayerSkin(playerid,134);
  134.     CMDMessageToNS(playerid,"/nsskin2");
  135.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [NS] Member to use this command", "OK", "");
  136.     return 1;
  137. }
  138. CMD:nsskin3(playerid,params[]) {
  139.     #pragma unused params
  140.     if(PlayerInfo[playerid][NS] >= 1) {
  141.     SetPlayerSkin(playerid,230);
  142.     CMDMessageToNS(playerid,"/nsskin3");
  143.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be [NS] Member to use this command", "OK", "");
  144.     return 1;
  145. }
  146. forward MessageToNS(color,const string[]);
  147.     public MessageToNS(color,const string[])
  148.     {
  149.         for(new i = 0; i < MAX_PLAYERS; i++)
  150.         {
  151.             if(IsPlayerConnected(i) == 1)
  152.             if(PlayerInfo[i][NS] >= 1) {
  153.             if(PlayerInfo[i][LoggedIn] == 1) {
  154.             SendClientMessage(i, color, string); }
  155.         }
  156.       }
  157.     }
  158. CMDMessageToNS(playerid,command[])
  159. {
  160.     new string[128];
  161.     GetPlayerName(playerid,string,sizeof(string));
  162.     format(string,sizeof(string),"{A4FF00}[Navy Seals] {7F8575}'%s' (Level: %d) | has used the command: {A4FF00}%s",string,PlayerInfo[playerid][NS],command);
  163.     MessageToNS(red,string);
  164.     return 1;
  165. }
  166. CMD:nstune(playerid, params[]) {
  167.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "ERROR : You need to be Logged in to use this command");
  168.     if(PlayerInfo[playerid][NS] >= 1) {
  169.         new vehicleid = GetPlayerVehicleID(playerid);
  170.         CMDMessageToNS(playerid, "/nstune");
  171.         ChangeVehicleColor(vehicleid,2,1);
  172.         AddVehicleComponent(vehicleid, 1010);
  173.         PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  174.         return PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  175.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  176. }
  177. CMD:nsbike(playerid,params[]) {
  178.     #pragma unused params
  179.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  180.         if(PlayerInfo[playerid][NS] >= 1) {
  181.         if (!IsPlayerInAnyVehicle(playerid)) {
  182.             CarSpawner(playerid,522);
  183.             CMDMessageToNS(playerid,"/nsbike");
  184.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Bike");
  185.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  186.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  187. }
  188. CMD:nshunter(playerid,params[]) {
  189.     #pragma unused params
  190.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  191.         if(PlayerInfo[playerid][NS] >= 1) {
  192.         if (!IsPlayerInAnyVehicle(playerid)) {
  193.             CarSpawner(playerid,425);
  194.             CMDMessageToNS(playerid,"/nshunter");
  195.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Hunter");
  196.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  197.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  198. }
  199. CMD:nshydra(playerid,params[]) {
  200.     #pragma unused params
  201.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  202.         if(PlayerInfo[playerid][NS] >= 1) {
  203.         if (!IsPlayerInAnyVehicle(playerid)) {
  204.             CarSpawner(playerid,520);
  205.             CMDMessageToNS(playerid,"/nshydra");
  206.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Hydra");
  207.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  208.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  209. }
  210. CMD:nscar1(playerid,params[]) {
  211.     #pragma unused params
  212.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  213.         if(PlayerInfo[playerid][NS] >= 1) {
  214.         if (!IsPlayerInAnyVehicle(playerid)) {
  215.             CarSpawner(playerid,411);
  216.             CMDMessageToNS(playerid,"/nscar1");
  217.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Infernus");
  218.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  219.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  220. }
  221. CMD:nscar2(playerid,params[]) {
  222.     #pragma unused params
  223.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  224.         if(PlayerInfo[playerid][NS] >= 1) {
  225.         if (!IsPlayerInAnyVehicle(playerid)) {
  226.             CarSpawner(playerid,560);
  227.             CMDMessageToNS(playerid,"/nscar2");
  228.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Sultan");
  229.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  230.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  231. }
  232. CMD:nscar3(playerid,params[]) {
  233.     #pragma unused params
  234.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  235.         if(PlayerInfo[playerid][NS] >= 1) {
  236.         if (!IsPlayerInAnyVehicle(playerid)) {
  237.             CarSpawner(playerid,494);
  238.             CMDMessageToNS(playerid,"/nscar3");
  239.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Hotring");
  240.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  241.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  242. }
  243. CMD:nsheli(playerid,params[]) {
  244.     #pragma unused params
  245.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  246.         if(PlayerInfo[playerid][NS] >= 1) {
  247.         if (!IsPlayerInAnyVehicle(playerid)) {
  248.             CarSpawner(playerid,487);
  249.             CMDMessageToNS(playerid,"/nsheli");
  250.             return SendClientMessage(playerid,0x00FFFFAA,"You are spawned Navy Seals Heli");
  251.         } else return SendClientMessage(playerid,0xFF0000AA,"Error: You already have a vehicle");
  252.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  253. }
  254. CMD:nss(playerid,params[]) {
  255.         ResetPlayerWeapons(playerid);
  256.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  257.         if(PlayerInfo[playerid][NS] >= 1) {
  258.         GivePlayerWeapon(playerid,26,1000);
  259.         new string[128];
  260.         new ename[MAX_PLAYER_NAME];
  261.         GetPlayerName(playerid, ename, sizeof(ename));
  262.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals Sawn-Off", ename);
  263.         SendClientMessageToAll(0x00FFFFAA, string);
  264.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nss.",ename,playerid);
  265.         CMDMessageToNS(playerid,"/nss");
  266.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with Navy Seals Sawn-Off");
  267.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  268. }
  269. CMD:nsd(playerid,params[]) {
  270.         ResetPlayerWeapons(playerid);
  271.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  272.         if(PlayerInfo[playerid][NS] >= 1) {
  273.         GivePlayerWeapon(playerid,24,1000);
  274.         new string[128];
  275.         new ename[MAX_PLAYER_NAME];
  276.         GetPlayerName(playerid, ename, sizeof(ename));
  277.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals Desert-Eagle", ename);
  278.         SendClientMessageToAll(0x00FFFFAA, string);
  279.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nsd",ename,playerid);
  280.         CMDMessageToNS(playerid,"/nsd");
  281.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with Navy Seals Desert-Eagle ");
  282.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  283. }
  284. CMD:nsu(playerid,params[]) {
  285.         ResetPlayerWeapons(playerid);
  286.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  287.         if(PlayerInfo[playerid][NS] >= 1) {
  288.         GivePlayerWeapon(playerid,27,1000);
  289.         new string[128];
  290.         new ename[MAX_PLAYER_NAME];
  291.         GetPlayerName(playerid, ename, sizeof(ename));
  292.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals Combat ShotGun", ename);
  293.         SendClientMessageToAll(0x00FFFFAA, string);
  294.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nsu",ename,playerid);
  295.         CMDMessageToNS(playerid,"/nsu");
  296.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with NS Combat");
  297.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  298. }
  299. CMD:nsm4(playerid,params[]) {
  300.         ResetPlayerWeapons(playerid);
  301.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  302.         if(PlayerInfo[playerid][NS] >= 1) {
  303.         GivePlayerWeapon(playerid,31,1000);
  304.         new string[128];
  305.         new ename[MAX_PLAYER_NAME];
  306.         GetPlayerName(playerid, ename, sizeof(ename));
  307.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals M4 Rifle", ename);
  308.         SendClientMessageToAll(0x00FFFFAA, string);
  309.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nsm4",ename,playerid);
  310.         CMDMessageToNS(playerid,"/nsm4");
  311.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with Navy Seals M4 Rifle");
  312.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  313. }
  314. CMD:nssp(playerid,params[]) {
  315.         ResetPlayerWeapons(playerid);
  316.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  317.         if(PlayerInfo[playerid][NS] >= 1) {
  318.         GivePlayerWeapon(playerid,34,1000);
  319.         new string[128];
  320.         new ename[MAX_PLAYER_NAME];
  321.         GetPlayerName(playerid, ename, sizeof(ename));
  322.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals Sniper Rifle", ename);
  323.         SendClientMessageToAll(0x00FFFFAA, string);
  324.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nssp",ename,playerid);
  325.         CMDMessageToNS(playerid,"/nssp");
  326.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with Navy Seals Sniper Rifle");
  327.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  328. }
  329. CMD:nsweaps(playerid,params[]) {
  330.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  331.         if(PlayerInfo[playerid][NS] >= 1) {
  332.         GivePlayerWeapon(playerid,18,1000); GivePlayerWeapon(playerid,31,1000);
  333.         GivePlayerWeapon(playerid,9,1000); GivePlayerWeapon(playerid,46,1000);
  334.         GivePlayerWeapon(playerid,24,1000); GivePlayerWeapon(playerid,26,1000);
  335.         GivePlayerWeapon(playerid,34,1000);
  336.         new string[128];
  337.         new ename[MAX_PLAYER_NAME];
  338.         GetPlayerName(playerid, ename, sizeof(ename));
  339.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals Weapons", ename);
  340.         SendClientMessageToAll(0x00FFFFAA, string);
  341.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nsweaps",ename,playerid);
  342.         CMDMessageToNS(playerid,"/nsweaps");
  343.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with Navy Seals Weapons");
  344.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  345. }
  346. CMD:nsweaps2(playerid,params[]) {
  347.         if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  348.         if(PlayerInfo[playerid][NS] >= 1) {
  349.         GivePlayerWeapon(playerid,7,1000); GivePlayerWeapon(playerid,27,1000);
  350.         GivePlayerWeapon(playerid,30,1000); GivePlayerWeapon(playerid,43,1000);
  351.         GivePlayerWeapon(playerid,9,1000); GivePlayerWeapon(playerid,28,1000);
  352.         GivePlayerWeapon(playerid,41,1000);
  353.         new string[128];
  354.         new ename[MAX_PLAYER_NAME];
  355.         GetPlayerName(playerid, ename, sizeof(ename));
  356.         format(string, sizeof(string), "{A4FF00}[Navy Seals]:{7F8575} %s has used the command: {A4FF00}Navy Seals Weapons 2", ename);
  357.         SendClientMessageToAll(0x00FFFFAA, string);
  358.         format(string,sizeof(string),"9[Navy Seals] Potential %s (%d) has used the command: /nsweaps2",ename,playerid);
  359.         CMDMessageToNS(playerid,"/nsweaps2");
  360.         return SendClientMessage(playerid,0xFF0000AA,"Enjoy with Navy Seals Weapons 2");
  361.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  362. }
  363. CMD:nsrules(playerid, params[])
  364. {
  365.     #pragma unused params
  366.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  367.     if(PlayerInfo[playerid][NS] >= 1) {
  368.         new string[2500];
  369.         strcat(string, "\n\n{A4FF00}NS - Navy Seals Clan Offcial & Game Rules", 1900 );
  370.         strcat(string, "\n\n{7F8575}- The use of the NS tag is compulsory.",1900 );
  371.         strcat(string, "\n{7F8575}- Do not ask for promotions or you will be warned/demoted.", 1900 );
  372.         strcat(string, "\n{7F8575}- No type of hacks, cleos are allowed.", 1900 );
  373.         strcat(string, "\n{7F8575}- You must be active in Forum/Servers.", 1900 );
  374.         strcat(string, "\n{7F8575}- Do not use bad language.", 1900 );
  375.         strcat(string, "\n{7F8575}- If you are going to be inactive you must inform.", 1900 );
  376.         strcat(string, "\n{7F8575}- You can not have a bad reputation.", 1900 );
  377.         strcat(string, "\n{7F8575}- We do not want members who are evading the ban.", 1900 );
  378.         strcat(string, "\n{7F8575}- You have to follow all the rules of the clan and the server.", 1900 );
  379.         strcat(string, "\n{7F8575}- Any type of discussion with a member will lead to serious actions.", 1900 );
  380.         strcat(string, "\n{7F8575}- Respect and faithfulness is the basis of the clan.", 1900 );
  381.         strcat(string, "\n{7F8575}- If you leave Navy Seals to go to another clan you will get PERM BAN.", 1900 );
  382.         strcat(string, "\n\n{A4FF00}Signed: Navy Seals Management", 1900 );
  383.         ShowPlayerDialog(playerid,1235, DIALOG_STYLE_MSGBOX, "Navy Seals Rules", string, "OK","");
  384.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  385.     return 1;
  386. }
  387. CMD:ns(playerid,params[]) {
  388.         #pragma unused params
  389.         if(PlayerInfo[playerid][LoggedIn] == 1) {
  390.         if(PlayerInfo[playerid][NS] >= 1) {
  391.             new string[128];
  392.             if(PlayerInfo[playerid][NS] == 11)
  393.             format(string, sizeof(string), "{FF0000}[Navy Seals CHAT] {000060}President Captain - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  394.             if(PlayerInfo[playerid][NS] == 10)
  395.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {000060}Vice Capitain - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  396.             if(PlayerInfo[playerid][NS] == 9)
  397.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {00009D}General - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  398.             if(PlayerInfo[playerid][NS] == 8)
  399.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {00009D}Lieutenant Colonel - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  400.             if(PlayerInfo[playerid][NS] == 7)
  401.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {00009D}Commander - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  402.             if(PlayerInfo[playerid][NS] == 6)
  403.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {0054E8}High Roller - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  404.             if(PlayerInfo[playerid][NS] == 5)
  405.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {0054E8}Lieutenant - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  406.             if(PlayerInfo[playerid][NS] == 4)
  407.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {0054E8}First Sergeant - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  408.             if(PlayerInfo[playerid][NS] == 3)
  409.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {0054E8}Sergeant - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  410.             if(PlayerInfo[playerid][NS] == 2)
  411.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {0054E8}Corporal - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  412.             if(PlayerInfo[playerid][NS] == 1)
  413.             format(string, sizeof(string), "{FF0000}[Navy Seals Chat] {0054E8}Newbie - %s: {A4FF00}%s", PlayerName2(playerid), params[0] );
  414.             MessageToNS(blue,string);
  415.         } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  416.         } else return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  417.         return 1;
  418.     }
  419. NSStaffRanks(rank){
  420.     new output[128];
  421.     if(rank==7){
  422.         output="Commander";
  423.     }else if(rank==8){
  424.         output="Lieutenant Colonel";
  425.     }else if(rank==9){
  426.         output="General";
  427.     }else if(rank==10){
  428.         output="Vice Captain";
  429.     }else if(rank==11){
  430.         output="President Captain";
  431.     }
  432.  
  433.     return output;
  434. }
  435.  
  436. forward MessageToStaffNS(const member[],level,const message[]);
  437. public MessageToStaffNS(const member[],level,const message[])
  438. {
  439.     new nsmsg[128];
  440.     for(new i = 0; i < MAX_PLAYERS; i++) {
  441.     if(IsPlayerConnected(i) == 1)
  442.         if(PlayerInfo[i][NS] >= 7) {
  443.             if(PlayerInfo[i][LoggedIn] == 1) {
  444.             format(nsmsg,128,"{FF0000}[Navy Seals OPER 7+] - {7F8575}Staff (%s) %s: {FAE5D3}%s",NSStaffRanks(level),member,message);
  445.             SendClientMessage(i,-1,nsmsg);}
  446.         }
  447.     }
  448. }
  449.  
  450. CMD:nsm(playerid, params[]){
  451.     if(!PlayerInfo[playerid][LoggedIn]) return SendClientMessage(playerid, red, "ERROR: You have to be LoggedIn to use this command.");
  452.     if(!PlayerInfo[playerid][NS]) return SendClientMessage(playerid, red, "ERROR: You have to be NS Member to use this command.");
  453.     if(PlayerInfo[playerid][NS] < 7) return SendClientMessage(playerid, red, "ERROR: You have to be NS Member rank 7+ to use this command.");
  454.     if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /nsm [message]");
  455.     new pyname[64];
  456.     GetPlayerName(playerid,pyname,sizeof(pyname));
  457.     MessageToStaffNS(pyname,PlayerInfo[playerid][NS],params);
  458.     return 1;
  459. }
  460. CMD:nsafk(playerid,params[]) {
  461.     #pragma unused params
  462.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  463.     if(PlayerInfo[playerid][NS] >= 1) {
  464.         new string[256],kuldoneve[MAX_PLAYER_NAME];
  465.         SendClientMessage(playerid,0x99FF00AA,"{00F7FF}Type /nsback when you back.");
  466.         GameTextForPlayer(playerid,"~r~ You are now AFK", 5000, 1);
  467.         /*AFK[playerid] = Create3DTextLabel(" Navy Seals AFK", 0xFF0000FF, 0.0, 0.0, 2.0, 40, 0, 0);
  468.         Attach3DTextLabelToPlayer( Navy Seals AFK[playerid],playerid, 0.0, 0.0, 0.4);*/
  469.         TogglePlayerControllable(playerid, 0);
  470.         GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
  471.         if(PlayerInfo[playerid][NS] == 1)
  472.         format(string, sizeof(string), "{FFFF00}[Navy Seals] Newbie {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  473.         if(PlayerInfo[playerid][NS] == 2)
  474.         format(string, sizeof(string), "{FFFF00}[Navy Seals] Corporal {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  475.         if(PlayerInfo[playerid][NS] == 3)
  476.         format(string, sizeof(string), "{FFFF00}}[Navy Seals] Sergeant {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  477.         if(PlayerInfo[playerid][NS] == 4)
  478.         format(string, sizeof(string), "{FFFF00}[Navy Seals] First Sergeant {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  479.         if(PlayerInfo[playerid][NS] == 5)
  480.         format(string, sizeof(string), "{FFFF00}[Navy Seals] Lieutenant {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  481.         if(PlayerInfo[playerid][NS] == 6)
  482.         format(string, sizeof(string), "{FFFF00}[Navy Seals] High Roller {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  483.         if(PlayerInfo[playerid][NS] == 7)
  484.         format(string, sizeof(string), "{FFFF00}[Navy Seals] Commander {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  485.         if(PlayerInfo[playerid][NS] == 8)
  486.         format(string, sizeof(string), "{FFFF00}[Navy Seals] Lieutenant Colonel {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  487.         if(PlayerInfo[playerid][NS] == 9)
  488.         format(string, sizeof(string), "{FFFF00}[Navy Seals] General {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  489.         if(PlayerInfo[playerid][NS] == 10)
  490.         format(string, sizeof(string), "{FFFF00}[Navy Seals] Vice Captain {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  491.         if(PlayerInfo[playerid][NS] == 11)
  492.         format(string, sizeof(string), "{FFFF00}[Navy Seals] President Captain {A4FF00}%s {FFFF00}Is now away from keyboard",kuldoneve, playerid);
  493.         SendClientMessageToAll(COLOR_YELLOW, string);
  494.         CMDMessageToNS(playerid,"/nsafk");
  495.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  496.     return 1;}
  497.  
  498. CMD:nsback(playerid,params[]) {
  499.     #pragma unused params
  500.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  501.     if(PlayerInfo[playerid][NS] >= 1) {
  502.         new string[256],kuldoneve[MAX_PLAYER_NAME];
  503.         //Delete3DTextLabel( Navy Seals AFK[playerid]);
  504.         GameTextForPlayer(playerid,"~y~ Welcome Back", 5000, 1);
  505.         TogglePlayerControllable(playerid, 1);
  506.         GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
  507.         if(PlayerInfo[playerid][NS] == 1)
  508.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Newbie {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  509.         if(PlayerInfo[playerid][NS] == 2)
  510.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Corporal {A4FF00}%s  {00FFF5}Is now back",kuldoneve, playerid);
  511.         if(PlayerInfo[playerid][NS] == 3)
  512.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Sergeant {A4FF00}%s  {00FFF5}Is now back",kuldoneve, playerid);
  513.         if(PlayerInfo[playerid][NS] == 4)
  514.         format(string, sizeof(string), "{00FFF5}[Navy Seals] First Sergeant {A4FF00}%s  {00FFF5}Is now back",kuldoneve, playerid);
  515.         if(PlayerInfo[playerid][NS] == 5)
  516.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Lieutenant {A4FF00}%s  {00FFF5}Is now back",kuldoneve, playerid);
  517.         if(PlayerInfo[playerid][NS] == 6)
  518.         format(string, sizeof(string), "{00FFF5}[Navy Seals] High Roller {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  519.         if(PlayerInfo[playerid][NS] == 7)
  520.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Commander {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  521.         if(PlayerInfo[playerid][NS] == 8)
  522.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Lieutenant Colonel {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  523.         if(PlayerInfo[playerid][NS] == 9)
  524.         format(string, sizeof(string), "{00FFF5}[Navy Seals] General {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  525.         if(PlayerInfo[playerid][NS] == 10)
  526.         format(string, sizeof(string), "{00FFF5}[Navy Seals] Vice Captain {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  527.         if(PlayerInfo[playerid][NS] == 11)
  528.         format(string, sizeof(string), "{00FFF5}[Navy Seals] President Captain {A4FF00}%s {00FFF5}Is now back",kuldoneve, playerid);
  529.         SendClientMessageToAll(COLOR_YELLOW, string);
  530.         CMDMessageToNS(playerid,"/nsback");
  531.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher NS Level to use this command", "OK", "Cancel");
  532.     return 1;
  533. }
  534. CMD:nsc1(playerid,params[]) {
  535.     #pragma unused params
  536.     if(PlayerInfo[playerid][NS] >= 1) {
  537.     SetPlayerColor(playerid,0xFF0000AA);
  538.     SendClientMessage(playerid,0x33CCFFAA,"{FF0000}You setted Navy Seals Colour 1");
  539.     CMDMessageToNS(playerid,"/nsc1");
  540.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  541.     return 1;
  542. }
  543. CMD:nsc2(playerid,params[]) {
  544.     #pragma unused params
  545.     if(PlayerInfo[playerid][NS] >= 1) {
  546.     SetPlayerColor(playerid,0x2C3E50AA);
  547.     SendClientMessage(playerid,0x33CCFFAA,"{2C3E50}You setted Navy Seals Colour 2");
  548.     CMDMessageToNS(playerid,"/nsc2");
  549.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  550.     return 1;
  551. }
  552. CMD:nsc3(playerid,params[]) {
  553.     #pragma unused params
  554.     if(PlayerInfo[playerid][NS] >= 1) {
  555.     SetPlayerColor(playerid,0x9B59B6AA);
  556.     SendClientMessage(playerid,0x33CCFFAA,"{9B59B6}You setted Navy Seals Colour 3");
  557.     CMDMessageToNS(playerid,"/nsc3");
  558.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  559.     return 1;
  560. }
  561. CMD:nsc4(playerid,params[]) {
  562.     #pragma unused params
  563.     if(PlayerInfo[playerid][NS] >= 1) {
  564.     SetPlayerColor(playerid,0x1F618DAA);
  565.     SendClientMessage(playerid,0x33CCFFAA,"{1F618D}You setted Navy Seals Colour 4");
  566.     CMDMessageToNS(playerid,"/nsc4");
  567.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  568.     return 1;
  569. }
  570. CMD:nsc5(playerid,params[]) {
  571.     #pragma unused params
  572.     if(PlayerInfo[playerid][NS] >= 1) {
  573.     SetPlayerColor(playerid,0xF39C12AA);
  574.     SendClientMessage(playerid,0x33CCFFAA,"{F39C12}You setted Navy Seals Colour 5");
  575.     CMDMessageToNS(playerid,"/nsc5");
  576.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  577.     return 1;
  578. }
  579. CMD:nsc6(playerid,params[]) {
  580.     #pragma unused params
  581.     if(PlayerInfo[playerid][NS] >= 1) {
  582.     SetPlayerColor(playerid,0x680D48AA);
  583.     SendClientMessage(playerid,0x33CCFFAA,"{680D48}You setted Navy Seals Colour 6");
  584.     CMDMessageToNS(playerid,"/nsc6");
  585.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  586.     return 1;
  587. }
  588. CMD:nsc7(playerid,params[]) {
  589.     #pragma unused params
  590.     if(PlayerInfo[playerid][NS] >= 1) {
  591.     SetPlayerColor(playerid,0x138D75AA);
  592.     SendClientMessage(playerid,0x33CCFFAA,"{138D75}You setted Navy Seals Colour 7");
  593.     CMDMessageToNS(playerid,"/nsc7");
  594.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  595.     return 1;
  596. }
  597. CMD:nsc8(playerid,params[]) {
  598.     #pragma unused params
  599.     if(PlayerInfo[playerid][NS] >= 1) {
  600.     SetPlayerColor(playerid,0x4D5656AA);
  601.     SendClientMessage(playerid,0x33CCFFAA,"{4D5656}You setted Navy Seals Colour 8");
  602.     CMDMessageToNS(playerid,"/nsc8");
  603.     } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be NS Member to use this command", "OK", "");
  604.     return 1;
  605. }
  606. CMD:nsh(playerid,params[]) {
  607.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  608.     if(PlayerInfo[playerid][NS] >= 1) {
  609.             new string[128];
  610.             if(PlayerInfo[playerid][NS] == 11)
  611.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] President Captain %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  612.             if(PlayerInfo[playerid][NS] == 10)
  613.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Vice Captain %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  614.             if(PlayerInfo[playerid][NS] == 9)
  615.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] General %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  616.             if(PlayerInfo[playerid][NS] == 8)
  617.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Lieutenant Colonel %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  618.             if(PlayerInfo[playerid][NS] == 7)
  619.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Commander %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  620.             if(PlayerInfo[playerid][NS] == 6)
  621.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] High Roller %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  622.             if(PlayerInfo[playerid][NS] == 5)
  623.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Lieutenant %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  624.             if(PlayerInfo[playerid][NS] == 4)
  625.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] First Sergeant %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  626.             if(PlayerInfo[playerid][NS] == 3)
  627.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Sergeant %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  628.             if(PlayerInfo[playerid][NS] == 2)
  629.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Corporal %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  630.             if(PlayerInfo[playerid][NS] == 1)
  631.             format(string, sizeof(string), "{FFFFFF}[Navy Seals] Newbie %s: {FF0000}is requesting help!!!", PlayerName2(playerid), params[0] );
  632.             MessageToNS(0xFF0000AA,string);
  633.             CMDMessageToNS(playerid,"/nsh");
  634.     } else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be higher [NS] Level to use this command", "OK", "Cancel");
  635.     return 1;
  636. }
  637. CMD:setns(playerid,params[]) {
  638.     if(PlayerInfo[playerid][LoggedIn] == 1) {
  639.             if(!IsPlayerAdmin(playerid) && PlayerInfo[playerid][NS] < 7) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ERROR","You need to be 7+ level NS Member to use this command","OK","Terminate");
  640.             new tmp[128], tmp2[128], Index;     tmp = strtok(params,Index), tmp2 = strtok(params,Index);
  641.             if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /setNS [playerid] [level]")
  642.             &&
  643.             SendClientMessage(playerid, orange, "Function: Will set the Level of [NS] of the Specific Player");
  644.             new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
  645.             player1 = strval(tmp);
  646.             if(isnull(tmp2)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /setNS[playerid] [level]")
  647.             &&
  648.             SendClientMessage(playerid, orange, "Function: Will set the Level of [NS] of the Specific Player");
  649.             level = strval(tmp2);
  650.  
  651.             if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
  652.                 if(PlayerInfo[player1][LoggedIn] == 1) {
  653.                     if(level > 11) return SendClientMessage(playerid,0xFF0000AA,"ERROR: Max [NS] Level is 11");
  654.                     if(level == PlayerInfo[player1][NS]) return SendClientMessage(playerid,0xFF0000AA,"ERROR: Player is already this [NS] level");
  655.                     if(level > PlayerInfo[playerid][NS] && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You can't set yourself rank up");
  656.                     if(PlayerInfo[playerid][NS] < PlayerInfo[player1][NS]) return SendClientMessage(playerid, 0xFF0000AA, "ERROR: You can't set this player's rank.");
  657.                     MessageToAdmins(playerid,"SetNS");
  658.                     CMDMessageToNS(playerid,"/SetNS");
  659.                     GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
  660.                     new year,month,day;   getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
  661.  
  662.                     if(level > 0) format(string,sizeof(string)," %s has set your Navy Seals Status to level %d",adminname, level);
  663.                     else format(string,sizeof(string)," %s has set youre Navy Seals Status to level %d",adminname, level);
  664.                     SendClientMessage(player1,0x00FFFFAA,string);
  665.  
  666.                     if(level > PlayerInfo[player1][NS]) GameTextForPlayer(player1,"~g~NAVY SEALS LEVEL UP", 2000, 3);
  667.                     else GameTextForPlayer(player1,"~r~NAVY SEALS LEVEL DOWN", 2000, 3);
  668.  
  669.                     format(string,sizeof(string),"You have made %s Navy Seals Level %d on %d/%d/%d at %d:%d:%d", playername, level, day, month, year, hour, minute, second); SendClientMessage(playerid,0x00FFFFAA,string);
  670.                     format(string,sizeof(string),"%s has made %s Navy Seals Level %d on %d/%d/%d at %d:%d:%d",adminname, playername, level, day, month, year, hour, minute, second);
  671.                     SaveToFile("nsmembers",string);
  672.                     dUserSetINT(PlayerName2(player1)).("NS",(level));
  673.                     PlayerInfo[player1][NS] = level;
  674.                     return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  675.                 } else return SendClientMessage(playerid,0xFF0000AA,"ERROR: Player must be registered and logged in to be set as a [NS] member");
  676.             } else return SendClientMessage(playerid, 0xFF0000AA, "Player is not connected");
  677.     } else return SendClientMessage(playerid,0xFF0000AA,"ERROR: You must be logged in to use these commands");
  678. }
  679. CMD:settempns(playerid,params[]) {
  680.     if(PlayerInfo[playerid][LoggedIn] == 1) {
  681.             if(PlayerInfo[playerid][NS] < 7) return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be a NS to use this command", "OK", "");
  682.             new tmp[128], tmp2[128], Index;     tmp = strtok(params,Index), tmp2 = strtok(params,Index);
  683.             if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /settempNS [playerid] [level]");
  684.             new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
  685.             player1 = strval(tmp);
  686.             if(isnull(tmp2)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /settempNS [playerid] [level]");
  687.             level = strval(tmp2);
  688.  
  689.             if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
  690.                 if(PlayerInfo[player1][LoggedIn] == 1) {
  691.                     if(level > 11) return SendClientMessage(playerid,0xFF0000FF,"ERROR: Max [NS] temporary level is 11!");
  692.                     if(level == PlayerInfo[player1][NS]) return SendClientMessage(playerid,0xFF0000FF,"ERROR: Player is already this [NS] level");
  693.                     CMDMessageToNS(playerid,"/SetTempNS");
  694.                     GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
  695.                     new year,month,day;   getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
  696.  
  697.                     if(level > 0) format(string,sizeof(string)," %s has set your Navy Seals Status to level %d",adminname, level);
  698.                     else format(string,sizeof(string)," %s has set your Navy Seals Status to level %d",adminname, level);
  699.                     SendClientMessage(player1,0xFF0000FF,string);
  700.  
  701.                     if(level > PlayerInfo[player1][NS]) GameTextForPlayer(player1,"~g~NS Rank Promoted", 2000, 3);
  702.                     else GameTextForPlayer(player1,"~r~Navy Seals Rank Demoted", 2000, 3);
  703.  
  704.                     format(string,sizeof(string),"You have made %s Navy Seals Temporary Level %d on %d/%d/%d at %d:%d:%d", playername, level, day, month, year, hour, minute, second); SendClientMessage(playerid,0x00FFFFAA,string);
  705.                     format(string,sizeof(string),"%s has made %s Navy Seals Temporary Level %d on %d/%d/%d at %d:%d:%d",adminname, playername, level, day, month, year, hour, minute, second);
  706.                     PlayerInfo[player1][NS] = level;
  707.                     return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  708.                 } else return SendClientMessage(playerid,0xFF0000FF,"ERROR: Player must be registered and logged in to be setted as [NS] member");
  709.             } else return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Player is not connected");
  710.     } else return SendClientMessage(playerid,0xFF0000FF,"ERROR: You must be logged in to use this commands");
  711. }
  712. CMD:osetns(playerid,params[])
  713. {
  714.     if(PlayerInfo[playerid][NS] < 7 ) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ERROR","You need to be 7+ level NS Member to use this command","OK","Terminate");
  715.     {
  716.     new file[256],string[120];
  717.     new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
  718.     if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /osetNS [name] [level]");
  719.     if(isnull(tmp2)) return SendClientMessage(playerid, red, "ERROR: You must input a level");
  720.     if(strval(tmp2) > 11) return SendClientMessage(playerid, red, "ERROR: Max NS Rank is 11");
  721.     if(dUserINT(tmp).("NS") > PlayerInfo[playerid][NS]) return SendClientMessage(playerid, red, "ERROR: You can't set this player's rank.");
  722.     if(strval(tmp2) > PlayerInfo[playerid][NS]) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You can't set yourself rank up");
  723.     format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(tmp));
  724.     if(!fexist(file)) return SendClientMessage(playerid, red, "ERROR: that account don't even exist!");
  725.     dini_Set(file,"NS",tmp2);
  726.     new year,month,day;   getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);
  727.     format(string,sizeof(string),"You have setted %s's Navy Seals level to %s on %d/%d/%d at %d:%d:%d",tmp,tmp2 ,day, month, year, hour, minute, second );
  728.     SendClientMessage(playerid,0x00FFFFAA,string);
  729.     }
  730.     return 1;
  731. }
  732. CMD:nsay(playerid,params[]) {
  733.     #pragma unused params
  734.     if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");
  735.     if(PlayerInfo[playerid][NS] >= 1) {
  736.         if(isnull(params)) return SendClientMessage(playerid,0xFF0000AA, "USAGE: /nsay [text]")
  737.         &&
  738.         SendClientMessage(playerid, orange, "Function: Will send specified message as NS Member!");
  739.         new string[128];
  740.         if(PlayerInfo[playerid][NS] == 11)
  741.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] President Captain %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  742.         if(PlayerInfo[playerid][NS] == 10)
  743.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Vice Captain %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  744.         if(PlayerInfo[playerid][NS] == 9)
  745.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] General %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  746.         if(PlayerInfo[playerid][NS] == 8)
  747.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Lieutenant Colonel %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  748.         if(PlayerInfo[playerid][NS] == 7)
  749.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Commander %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  750.         if(PlayerInfo[playerid][NS] == 6)
  751.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] High Roller %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  752.         if(PlayerInfo[playerid][NS] == 5)
  753.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Lieutenant %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  754.         if(PlayerInfo[playerid][NS] == 4)
  755.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] First Sergeant %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  756.         if(PlayerInfo[playerid][NS] == 3)
  757.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Sergeant %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  758.         if(PlayerInfo[playerid][NS] == 2)
  759.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Corporal %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  760.         if(PlayerInfo[playerid][NS] == 1)
  761.         format(string, sizeof(string), "{B5FD00}*** [Navy Seals] Newbie %s: {CCEEFF}%s", PlayerName2(playerid), params[0] );
  762.         return SendClientMessageToAll(0xFF0000AA,string);
  763.     } else return SendClientMessage(playerid,0xFF0000AA,"ERROR: You must be a NS Member to use this command");
  764. }
  765. CMD:nsann(playerid,params[]) {
  766.     if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /nsann [text]");
  767.     if(PlayerInfo[playerid][NS] >= 7) {
  768.     for(new i = 0; i < MAX_PLAYERS; i++) {
  769.     if(IsPlayerConnected(i)) {
  770.     if(PlayerInfo[i][NS] >= 1){
  771.     if(PlayerInfo[i][LoggedIn] == 1) {
  772.     PlayerPlaySound(i,1057,0.0,0.0,0.0); GameTextForPlayer(i,params, 4000, 3); GameTextForPlayer(playerid,params, 4000, 3);}}}}
  773.     new string[128]; format(string,sizeof(string),"[Navy Seals] Potential \"%s\" has announced to Navy Seals Members.", pName(playerid) );
  774.     MessageToNS(0x00FFFFAA, string);
  775.     CMDMessageToNS(playerid,"/nsann");
  776.     } else return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ERROR","You need to be NS member to use this command", "OK", "");
  777.     return 1;
  778. }
Add Comment
Please, Sign In to add comment