SHARE
TWEET

Commanda /fspec si /fspecoff

a guest Nov 13th, 2016 456 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. +1 Daca vam ajutat.
  2. Credit bogdan47
  3. Skype Cucubau bogdan
  4.  
  5. define
  6.  
  7. #define LeaderOnly "Error: Your Leader level isn't high enough to use this command."
  8.  
  9. Commanda
  10.  
  11. CMD:fspec(playerid, params[])
  12. {
  13.     if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  14.     if(IsPlayerConnected(playerid))
  15.     {
  16.         new id,giveplayer[25],string[100],sendername[25];
  17.         if(sscanf(params, "u", id)) return SCM(playerid,COLOR_WHITE,"{B8DBFF}Synthax: /spec <Name/Playerid>");
  18.         {
  19.             if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pRank] == 7)
  20.             {
  21.                 if(id != INVALID_PLAYER_ID)
  22.                 {
  23.                     Spectate[playerid] = id;
  24.                     new Float:health,
  25.                         cash =  GetPlayerCash(Spectate[playerid]);
  26.                     GetPlayerHealthEx(Spectate[playerid], health);
  27.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  28.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  29.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  30.                     SendClientMessage(playerid, COLOR_GREEN, string);
  31.                     format(string, sizeof(string), "{FFFFCC}Leader LSPD %s is now member spectating %s.",sendername,giveplayer);
  32.                     ABroadCast(COLOR_WHITE, string,6);
  33.                     TogglePlayerSpectating(playerid, 1);
  34.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  35.                     {
  36.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  37.                         PlayerSpectateVehicle(playerid, carid);
  38.                     }
  39.                     else
  40.                     {
  41.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  42.                     }
  43.                 }
  44.             }
  45.             if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pRank] == 7)
  46.             {
  47.                 if(id != INVALID_PLAYER_ID)
  48.                 {
  49.                     Spectate[playerid] = id;
  50.                     new Float:health,
  51.                         cash =  GetPlayerCash(Spectate[playerid]);
  52.                     GetPlayerHealthEx(Spectate[playerid], health);
  53.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  54.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  55.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  56.                     SendClientMessage(playerid, COLOR_GREEN, string);
  57.                     format(string, sizeof(string), "{FFFFCC}Leader F.B.I %s is now member spectating %s.",sendername,giveplayer);
  58.                     ABroadCast(COLOR_WHITE, string,6);
  59.                     TogglePlayerSpectating(playerid, 1);
  60.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  61.                     {
  62.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  63.                         PlayerSpectateVehicle(playerid, carid);
  64.                     }
  65.                     else
  66.                     {
  67.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  68.                     }
  69.                 }
  70.             }
  71.             if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pRank] == 7)
  72.             {
  73.                 if(id != INVALID_PLAYER_ID)
  74.                 {
  75.                     Spectate[playerid] = id;
  76.                     new Float:health,
  77.                         cash =  GetPlayerCash(Spectate[playerid]);
  78.                     GetPlayerHealthEx(Spectate[playerid], health);
  79.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  80.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  81.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  82.                     SendClientMessage(playerid, COLOR_GREEN, string);
  83.                     format(string, sizeof(string), "{FFFFCC}Leader National Guard %s is now member spectating %s.",sendername,giveplayer);
  84.                     ABroadCast(COLOR_WHITE, string,6);
  85.                     TogglePlayerSpectating(playerid, 1);
  86.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  87.                     {
  88.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  89.                         PlayerSpectateVehicle(playerid, carid);
  90.                     }
  91.                     else
  92.                     {
  93.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  94.                     }
  95.                 }
  96.             }
  97.             if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pRank] == 7)
  98.             {
  99.                 if(id != INVALID_PLAYER_ID)
  100.                 {
  101.                     Spectate[playerid] = id;
  102.                     new Float:health,
  103.                         cash =  GetPlayerCash(Spectate[playerid]);
  104.                     GetPlayerHealthEx(Spectate[playerid], health);
  105.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  106.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  107.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  108.                     SendClientMessage(playerid, COLOR_GREEN, string);
  109.                     format(string, sizeof(string), "{FFFFCC}Leader Los Aztecas %s is now member spectating %s.",sendername,giveplayer);
  110.                     ABroadCast(COLOR_WHITE, string,6);
  111.                     TogglePlayerSpectating(playerid, 1);
  112.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  113.                     {
  114.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  115.                         PlayerSpectateVehicle(playerid, carid);
  116.                     }
  117.                     else
  118.                     {
  119.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  120.                     }
  121.                 }
  122.             }
  123.             if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pRank] == 7)
  124.             {
  125.                 if(id != INVALID_PLAYER_ID)
  126.                 {
  127.                     Spectate[playerid] = id;
  128.                     new Float:health,
  129.                         cash =  GetPlayerCash(Spectate[playerid]);
  130.                     GetPlayerHealthEx(Spectate[playerid], health);
  131.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  132.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  133.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  134.                     SendClientMessage(playerid, COLOR_GREEN, string);
  135.                     format(string, sizeof(string), "{FFFFCC}Leader Grove Street %s is now member spectating %s.",sendername,giveplayer);
  136.                     ABroadCast(COLOR_WHITE, string,6);
  137.                     TogglePlayerSpectating(playerid, 1);
  138.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  139.                     {
  140.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  141.                         PlayerSpectateVehicle(playerid, carid);
  142.                     }
  143.                     else
  144.                     {
  145.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  146.                     }
  147.                 }
  148.             }
  149.             if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pRank] == 7)
  150.             {
  151.                 if(id != INVALID_PLAYER_ID)
  152.                 {
  153.                     Spectate[playerid] = id;
  154.                     new Float:health,
  155.                         cash =  GetPlayerCash(Spectate[playerid]);
  156.                     GetPlayerHealthEx(Spectate[playerid], health);
  157.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  158.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  159.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  160.                     SendClientMessage(playerid, COLOR_GREEN, string);
  161.                     format(string, sizeof(string), "{FFFFCC}Leader Los Vagos %s is now member spectating %s.",sendername,giveplayer);
  162.                     ABroadCast(COLOR_WHITE, string,6);
  163.                     TogglePlayerSpectating(playerid, 1);
  164.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  165.                     {
  166.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  167.                         PlayerSpectateVehicle(playerid, carid);
  168.                     }
  169.                     else
  170.                     {
  171.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  172.                     }
  173.                 }
  174.             }
  175.             if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pRank] == 7)
  176.             {
  177.                 if(id != INVALID_PLAYER_ID)
  178.                 {
  179.                     Spectate[playerid] = id;
  180.                     new Float:health,
  181.                         cash =  GetPlayerCash(Spectate[playerid]);
  182.                     GetPlayerHealthEx(Spectate[playerid], health);
  183.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  184.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  185.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  186.                     SendClientMessage(playerid, COLOR_GREEN, string);
  187.                     format(string, sizeof(string), "{FFFFCC}Leader LVPD %s is now member spectating %s.",sendername,giveplayer);
  188.                     ABroadCast(COLOR_WHITE, string,6);
  189.                     TogglePlayerSpectating(playerid, 1);
  190.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  191.                     {
  192.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  193.                         PlayerSpectateVehicle(playerid, carid);
  194.                     }
  195.                     else
  196.                     {
  197.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  198.                     }
  199.                 }
  200.             }
  201.             if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pRank] == 7)
  202.             {
  203.                 if(id != INVALID_PLAYER_ID)
  204.                 {
  205.                     Spectate[playerid] = id;
  206.                     new Float:health,
  207.                         cash =  GetPlayerCash(Spectate[playerid]);
  208.                     GetPlayerHealthEx(Spectate[playerid], health);
  209.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  210.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  211.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  212.                     SendClientMessage(playerid, COLOR_GREEN, string);
  213.                     format(string, sizeof(string), "{FFFFCC}Leader News Reporter %s is now member spectating %s.",sendername,giveplayer);
  214.                     ABroadCast(COLOR_WHITE, string,6);
  215.                     TogglePlayerSpectating(playerid, 1);
  216.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  217.                     {
  218.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  219.                         PlayerSpectateVehicle(playerid, carid);
  220.                     }
  221.                     else
  222.                     {
  223.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  224.                     }
  225.                 }
  226.             }
  227.             if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pRank] == 7)
  228.             {
  229.                 if(id != INVALID_PLAYER_ID)
  230.                 {
  231.                     Spectate[playerid] = id;
  232.                     new Float:health,
  233.                         cash =  GetPlayerCash(Spectate[playerid]);
  234.                     GetPlayerHealthEx(Spectate[playerid], health);
  235.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  236.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  237.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  238.                     SendClientMessage(playerid, COLOR_GREEN, string);
  239.                     format(string, sizeof(string), "{FFFFCC}Leader Ballas %s is now member spectating %s.",sendername,giveplayer);
  240.                     ABroadCast(COLOR_WHITE, string,6);
  241.                     TogglePlayerSpectating(playerid, 1);
  242.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  243.                     {
  244.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  245.                         PlayerSpectateVehicle(playerid, carid);
  246.                     }
  247.                     else
  248.                     {
  249.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  250.                     }
  251.                 }
  252.             }
  253.             if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pRank] == 7)
  254.             {
  255.                 if(id != INVALID_PLAYER_ID)
  256.                 {
  257.                     Spectate[playerid] = id;
  258.                     new Float:health,
  259.                         cash =  GetPlayerCash(Spectate[playerid]);
  260.                     GetPlayerHealthEx(Spectate[playerid], health);
  261.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  262.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  263.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  264.                     SendClientMessage(playerid, COLOR_GREEN, string);
  265.                     format(string, sizeof(string), "{FFFFCC}Leader The Agency %s is now member spectating %s.",sendername,giveplayer);
  266.                     ABroadCast(COLOR_WHITE, string,6);
  267.                     TogglePlayerSpectating(playerid, 1);
  268.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  269.                     {
  270.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  271.                         PlayerSpectateVehicle(playerid, carid);
  272.                     }
  273.                     else
  274.                     {
  275.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  276.                     }
  277.                 }
  278.             }
  279.             if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pRank] == 7)
  280.             {
  281.                 if(id != INVALID_PLAYER_ID)
  282.                 {
  283.                     Spectate[playerid] = id;
  284.                     new Float:health,
  285.                         cash =  GetPlayerCash(Spectate[playerid]);
  286.                     GetPlayerHealthEx(Spectate[playerid], health);
  287.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  288.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  289.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  290.                     SendClientMessage(playerid, COLOR_GREEN, string);
  291.                     format(string, sizeof(string), "{FFFFCC}Leader School Instructors %s is now member spectating %s.",sendername,giveplayer);
  292.                     ABroadCast(COLOR_WHITE, string,6);
  293.                     TogglePlayerSpectating(playerid, 1);
  294.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  295.                     {
  296.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  297.                         PlayerSpectateVehicle(playerid, carid);
  298.                     }
  299.                     else
  300.                     {
  301.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  302.                     }
  303.                 }
  304.             }
  305.             if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pRank] == 7)
  306.             {
  307.                 if(id != INVALID_PLAYER_ID)
  308.                 {
  309.                     Spectate[playerid] = id;
  310.                     new Float:health,
  311.                         cash =  GetPlayerCash(Spectate[playerid]);
  312.                     GetPlayerHealthEx(Spectate[playerid], health);
  313.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  314.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  315.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  316.                     SendClientMessage(playerid, COLOR_GREEN, string);
  317.                     format(string, sizeof(string), "{FFFFCC}Leader Los Santos Taxi %s is now member spectating %s.",sendername,giveplayer);
  318.                     ABroadCast(COLOR_WHITE, string,6);
  319.                     TogglePlayerSpectating(playerid, 1);
  320.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  321.                     {
  322.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  323.                         PlayerSpectateVehicle(playerid, carid);
  324.                     }
  325.                     else
  326.                     {
  327.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  328.                     }
  329.                 }
  330.             }
  331.             if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pRank] == 7)
  332.             {
  333.                 if(id != INVALID_PLAYER_ID)
  334.                 {
  335.                     Spectate[playerid] = id;
  336.                     new Float:health,
  337.                         cash =  GetPlayerCash(Spectate[playerid]);
  338.                     GetPlayerHealthEx(Spectate[playerid], health);
  339.                     GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
  340.                     GetPlayerName(playerid, sendername, sizeof(sendername));
  341.                     format(string, sizeof(string), "Watch: (%d) %s $%s Heal:%.0f",Spectate[playerid],giveplayer,FormatNumber(cash),health);
  342.                     SendClientMessage(playerid, COLOR_GREEN, string);
  343.                     format(string, sizeof(string), "{FFFFCC}Leader Paramedic %s is now member spectating %s.",sendername,giveplayer);
  344.                     ABroadCast(COLOR_WHITE, string,6);
  345.                     TogglePlayerSpectating(playerid, 1);
  346.                     if(IsPlayerInAnyVehicle(Spectate[playerid]))
  347.                     {
  348.                         new carid = GetPlayerVehicleID(Spectate[playerid]);
  349.                         PlayerSpectateVehicle(playerid, carid);
  350.                     }
  351.                     else
  352.                     {
  353.                         PlayerSpectatePlayer(playerid, Spectate[playerid]);
  354.                     }
  355.                 }
  356.             }
  357.             else
  358.             {
  359.                 SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
  360.             }
  361.         }
  362.     }
  363.     SendClientMessage(playerid, COLOR_WHITE, LeaderOnly);
  364.     return 1;
  365. }
  366. CMD:fspecoff(playerid, params[])
  367. {
  368.     if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  369.     if(IsPlayerConnected(playerid))
  370.     {
  371.         if(PlayerInfo[playerid][pMember] == 1  || PlayerInfo[playerid][pRank] == 7)
  372.         {
  373.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  374.             {
  375.                 TogglePlayerControllable(playerid, 1);
  376.                 TogglePlayerSpectating(playerid, 0);
  377.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  378.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  379.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  380.                 Unspec[playerid][sLocal] = 255;
  381.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  382.                 SetPlayerToTeamColor(playerid);
  383.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  384.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  385.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  386.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  387.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  388.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  389.                 SpawnPlayer(playerid);
  390.                 Spectate[playerid] = 255;
  391.                 return 1;
  392.             }
  393.         }
  394.         if(PlayerInfo[playerid][pMember] == 2  || PlayerInfo[playerid][pRank] == 7)
  395.         {
  396.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  397.             {
  398.                 TogglePlayerControllable(playerid, 1);
  399.                 TogglePlayerSpectating(playerid, 0);
  400.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  401.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  402.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  403.                 Unspec[playerid][sLocal] = 255;
  404.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  405.                 SetPlayerToTeamColor(playerid);
  406.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  407.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  408.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  409.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  410.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  411.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  412.                 SpawnPlayer(playerid);
  413.                 Spectate[playerid] = 255;
  414.                 return 1;
  415.             }
  416.         }
  417.         if(PlayerInfo[playerid][pMember] == 3  || PlayerInfo[playerid][pRank] == 7)
  418.         {
  419.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  420.             {
  421.                 TogglePlayerControllable(playerid, 1);
  422.                 TogglePlayerSpectating(playerid, 0);
  423.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  424.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  425.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  426.                 Unspec[playerid][sLocal] = 255;
  427.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  428.                 SetPlayerToTeamColor(playerid);
  429.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  430.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  431.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  432.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  433.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  434.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  435.                 SpawnPlayer(playerid);
  436.                 Spectate[playerid] = 255;
  437.                 return 1;
  438.             }
  439.         }
  440.         if(PlayerInfo[playerid][pMember] == 4  || PlayerInfo[playerid][pRank] == 7)
  441.         {
  442.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  443.             {
  444.                 TogglePlayerControllable(playerid, 1);
  445.                 TogglePlayerSpectating(playerid, 0);
  446.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  447.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  448.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  449.                 Unspec[playerid][sLocal] = 255;
  450.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  451.                 SetPlayerToTeamColor(playerid);
  452.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  453.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  454.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  455.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  456.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  457.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  458.                 SpawnPlayer(playerid);
  459.                 Spectate[playerid] = 255;
  460.                 return 1;
  461.             }
  462.         }
  463.         if(PlayerInfo[playerid][pMember] == 5  || PlayerInfo[playerid][pRank] == 7)
  464.         {
  465.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  466.             {
  467.                 TogglePlayerControllable(playerid, 1);
  468.                 TogglePlayerSpectating(playerid, 0);
  469.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  470.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  471.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  472.                 Unspec[playerid][sLocal] = 255;
  473.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  474.                 SetPlayerToTeamColor(playerid);
  475.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  476.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  477.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  478.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  479.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  480.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  481.                 SpawnPlayer(playerid);
  482.                 Spectate[playerid] = 255;
  483.                 return 1;
  484.             }
  485.         }
  486.         if(PlayerInfo[playerid][pMember] == 6  || PlayerInfo[playerid][pRank] == 7)
  487.         {
  488.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  489.             {
  490.                 TogglePlayerControllable(playerid, 1);
  491.                 TogglePlayerSpectating(playerid, 0);
  492.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  493.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  494.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  495.                 Unspec[playerid][sLocal] = 255;
  496.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  497.                 SetPlayerToTeamColor(playerid);
  498.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  499.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  500.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  501.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  502.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  503.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  504.                 SpawnPlayer(playerid);
  505.                 Spectate[playerid] = 255;
  506.                 return 1;
  507.             }
  508.         }
  509.         if(PlayerInfo[playerid][pMember] == 7  || PlayerInfo[playerid][pRank] == 7)
  510.         {
  511.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  512.             {
  513.                 TogglePlayerControllable(playerid, 1);
  514.                 TogglePlayerSpectating(playerid, 0);
  515.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  516.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  517.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  518.                 Unspec[playerid][sLocal] = 255;
  519.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  520.                 SetPlayerToTeamColor(playerid);
  521.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  522.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  523.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  524.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  525.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  526.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  527.                 SpawnPlayer(playerid);
  528.                 Spectate[playerid] = 255;
  529.                 return 1;
  530.             }
  531.         }
  532.         if(PlayerInfo[playerid][pMember] == 8  || PlayerInfo[playerid][pRank] == 7)
  533.         {
  534.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  535.             {
  536.                 TogglePlayerControllable(playerid, 1);
  537.                 TogglePlayerSpectating(playerid, 0);
  538.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  539.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  540.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  541.                 Unspec[playerid][sLocal] = 255;
  542.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  543.                 SetPlayerToTeamColor(playerid);
  544.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  545.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  546.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  547.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  548.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  549.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  550.                 SpawnPlayer(playerid);
  551.                 Spectate[playerid] = 255;
  552.                 return 1;
  553.             }
  554.         }
  555.         if(PlayerInfo[playerid][pMember] == 9  || PlayerInfo[playerid][pRank] == 7)
  556.         {
  557.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  558.             {
  559.                 TogglePlayerControllable(playerid, 1);
  560.                 TogglePlayerSpectating(playerid, 0);
  561.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  562.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  563.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  564.                 Unspec[playerid][sLocal] = 255;
  565.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  566.                 SetPlayerToTeamColor(playerid);
  567.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  568.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  569.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  570.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  571.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  572.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  573.                 SpawnPlayer(playerid);
  574.                 Spectate[playerid] = 255;
  575.                 return 1;
  576.             }
  577.         }
  578.         if(PlayerInfo[playerid][pMember] == 10  || PlayerInfo[playerid][pRank] == 7)
  579.         {
  580.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  581.             {
  582.                 TogglePlayerControllable(playerid, 1);
  583.                 TogglePlayerSpectating(playerid, 0);
  584.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  585.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  586.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  587.                 Unspec[playerid][sLocal] = 255;
  588.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  589.                 SetPlayerToTeamColor(playerid);
  590.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  591.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  592.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  593.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  594.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  595.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  596.                 SpawnPlayer(playerid);
  597.                 Spectate[playerid] = 255;
  598.                 return 1;
  599.             }
  600.         }
  601.         if(PlayerInfo[playerid][pMember] == 11  || PlayerInfo[playerid][pRank] == 7)
  602.         {
  603.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  604.             {
  605.                 TogglePlayerControllable(playerid, 1);
  606.                 TogglePlayerSpectating(playerid, 0);
  607.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  608.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  609.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  610.                 Unspec[playerid][sLocal] = 255;
  611.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  612.                 SetPlayerToTeamColor(playerid);
  613.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  614.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  615.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  616.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  617.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  618.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  619.                 SpawnPlayer(playerid);
  620.                 Spectate[playerid] = 255;
  621.                 return 1;
  622.             }
  623.         }
  624.         if(PlayerInfo[playerid][pMember] == 12  || PlayerInfo[playerid][pRank] == 7)
  625.         {
  626.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  627.             {
  628.                 TogglePlayerControllable(playerid, 1);
  629.                 TogglePlayerSpectating(playerid, 0);
  630.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  631.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  632.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  633.                 Unspec[playerid][sLocal] = 255;
  634.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  635.                 SetPlayerToTeamColor(playerid);
  636.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  637.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  638.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  639.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  640.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  641.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  642.                 SpawnPlayer(playerid);
  643.                 Spectate[playerid] = 255;
  644.                 return 1;
  645.             }
  646.         }
  647.         if(PlayerInfo[playerid][pMember] == 13  || PlayerInfo[playerid][pRank] == 7)
  648.         {
  649.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  650.             {
  651.                 TogglePlayerControllable(playerid, 1);
  652.                 TogglePlayerSpectating(playerid, 0);
  653.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  654.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  655.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  656.                 Unspec[playerid][sLocal] = 255;
  657.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  658.                 SetPlayerToTeamColor(playerid);
  659.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  660.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  661.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  662.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  663.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  664.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  665.                 SpawnPlayer(playerid);
  666.                 Spectate[playerid] = 255;
  667.                 return 1;
  668.             }
  669.         }
  670.         if(PlayerInfo[playerid][pMember] == 14  || PlayerInfo[playerid][pRank] == 7)
  671.         {
  672.             if(Spectate[playerid] < 253 && Spectate[playerid] != 255)
  673.             {
  674.                 TogglePlayerControllable(playerid, 1);
  675.                 TogglePlayerSpectating(playerid, 0);
  676.                 SetPlayerInterior(playerid,Unspec[playerid][sPint]);
  677.                 PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
  678.                 PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
  679.                 Unspec[playerid][sLocal] = 255;
  680.                 gTeam[playerid] = PlayerInfo[playerid][pTeam];
  681.                 SetPlayerToTeamColor(playerid);
  682.                 SendClientMessage(playerid, COLOR_GREEN, "Stop member spec.");
  683.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][1]);
  684.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][2]);
  685.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][3]);
  686.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][4]);
  687.                 TextDrawHideForPlayer(playerid, TextDrawSpec[playerid][5]);
  688.                 SpawnPlayer(playerid);
  689.                 Spectate[playerid] = 255;
  690.                 return 1;
  691.             }
  692.         }
  693.         else return SendClientMessage(playerid, COLOR_WHITE, LeaderOnly);
  694.     }
  695.     return 1;
  696. }
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
 
Top