Guest User

Untitled

a guest
Dec 16th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 50.34 KB | None | 0 0
  1. public Action:Cmd_Lock(client, args)
  2. {
  3.     decl Ent;
  4.     decl String:Door[255];
  5.  
  6.     Ent = GetClientAimTarget(client, false);
  7.    
  8.     if (IsPlayerAlive(client))
  9.     {
  10.         new String:SteamId[32];
  11.         GetClientAuthString(client, SteamId, sizeof(SteamId));
  12.        
  13.         if ((Ent == 1276) || (Ent == 1275))
  14.         {
  15.             if (Ent != -1)
  16.             {
  17.                 if (StrEqual(SteamId, "STEAM_0:1:15441843") || jobid [client] == 1 || jobid [client] == 2 || jobid [client] == 3)
  18.                 {
  19.                     GetEdictClassname(Ent, Door, sizeof(Door));
  20.                    
  21.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  22.                     {
  23.                         if (Entity_IsLocked(Ent))
  24.                         {
  25.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  26.                         }
  27.                         else
  28.                         {
  29.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  30.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  31.                             Entity_Lock(Ent);
  32.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  33.                         }
  34.                     }
  35.                 }
  36.                 else
  37.                 {
  38.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  39.                 }
  40.             }
  41.             else
  42.             {
  43.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  44.             }
  45.             return Plugin_Continue;
  46.         }
  47.        
  48.         if ((jobid[client] == 1) || (jobid[client] == 2) || (jobid[client] == 3))
  49.         {
  50.             if (Ent != -1)
  51.             {
  52.                 GetEdictClassname(Ent, Door, sizeof(Door));
  53.                
  54.                 if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  55.                 {
  56.                     if (Entity_IsLocked(Ent))
  57.                     {
  58.                         PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  59.                     }
  60.                     else
  61.                     {
  62.                         PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  63.                         PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  64.                         Entity_Lock(Ent);
  65.                         EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  66.                     }
  67.                 }
  68.             }
  69.             else
  70.             {
  71.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  72.             }
  73.             return Plugin_Handled;
  74.         }
  75.         else if ((jobid[client] == 4) || (jobid[client] == 5))
  76.         {
  77.             if (Ent != -1)
  78.             {
  79.                 if (IsInComico(Ent))
  80.                 {
  81.                     GetEdictClassname(Ent, Door, sizeof(Door));
  82.                    
  83.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  84.                     {
  85.                         if (Entity_IsLocked(Ent))
  86.                         {
  87.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  88.                         }
  89.                         else
  90.                         {
  91.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  92.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  93.                             Entity_Lock(Ent);
  94.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  95.                         }
  96.                     }
  97.                 }
  98.                 else
  99.                 {
  100.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  101.                 }
  102.             }
  103.             else
  104.             {
  105.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  106.             }
  107.             return Plugin_Handled;
  108.         }
  109.         else if ((jobid[client] == 6) || (jobid[client] == 7) || jobid[client] == 8)
  110.         {
  111.             if (Ent != -1)
  112.             {
  113.                 if (IsInMafia(Ent))
  114.                 {
  115.                     GetEdictClassname(Ent, Door, sizeof(Door));
  116.                    
  117.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  118.                     {
  119.                         if (Entity_IsLocked(Ent))
  120.                         {
  121.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  122.                         }
  123.                         else
  124.                         {
  125.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  126.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  127.                             Entity_Lock(Ent);
  128.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  129.                         }
  130.                     }
  131.                 }
  132.                 else
  133.                 {
  134.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  135.                 }
  136.             }
  137.             else
  138.             {
  139.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  140.             }
  141.             return Plugin_Handled;
  142.         }
  143.         else if ((jobid[client] == 9) || (jobid[client] == 10) || jobid[client] == 11)
  144.         {
  145.             if (Ent != -1)
  146.             {
  147.                 if (IsInDealer(Ent))
  148.                 {
  149.                     GetEdictClassname(Ent, Door, sizeof(Door));
  150.                    
  151.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  152.                     {
  153.                         if (Entity_IsLocked(Ent))
  154.                         {
  155.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  156.                         }
  157.                         else
  158.                         {
  159.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  160.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  161.                             Entity_Lock(Ent);
  162.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  163.                         }
  164.                     }
  165.                 }
  166.                 else
  167.                 {
  168.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  169.                 }
  170.             }
  171.             else
  172.             {
  173.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  174.             }
  175.             return Plugin_Handled;
  176.         }
  177.         else if ((jobid[client] == 12) || (jobid[client] == 13) || jobid[client] == 14)
  178.         {
  179.             if (Ent != -1)
  180.             {
  181.                 if (IsInCoach(Ent))
  182.                 {
  183.                     GetEdictClassname(Ent, Door, sizeof(Door));
  184.                    
  185.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  186.                     {
  187.                         if (Entity_IsLocked(Ent))
  188.                         {
  189.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  190.                         }
  191.                         else
  192.                         {
  193.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  194.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  195.                             Entity_Lock(Ent);
  196.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  197.                         }
  198.                     }
  199.                 }
  200.                 else
  201.                 {
  202.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  203.                 }
  204.             }
  205.             else
  206.             {
  207.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  208.             }
  209.             return Plugin_Handled;
  210.         }
  211.         else if ((jobid[client] == 15) || (jobid[client] == 16) || jobid[client] == 17)
  212.         {
  213.             if (Ent != -1)
  214.             {
  215.                 if (IsInEbay(Ent))
  216.                 {
  217.                     GetEdictClassname(Ent, Door, sizeof(Door));
  218.                    
  219.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  220.                     {
  221.                         if (Entity_IsLocked(Ent))
  222.                         {
  223.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  224.                         }
  225.                         else
  226.                         {
  227.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  228.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  229.                             Entity_Lock(Ent);
  230.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  231.                         }
  232.                     }
  233.                 }
  234.                 else
  235.                 {
  236.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  237.                 }
  238.             }
  239.             else
  240.             {
  241.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  242.             }
  243.             return Plugin_Handled;
  244.         }
  245.         else if ((jobid[client] == 18) || (jobid[client] == 19) || jobid[client] == 20)
  246.         {
  247.             if (Ent != -1)
  248.             {
  249.                 if (IsInArmu(Ent))
  250.                 {
  251.                     GetEdictClassname(Ent, Door, sizeof(Door));
  252.                    
  253.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  254.                     {
  255.                         if (Entity_IsLocked(Ent))
  256.                         {
  257.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  258.                         }
  259.                         else
  260.                         {
  261.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  262.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  263.                             Entity_Lock(Ent);
  264.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  265.                         }
  266.                     }
  267.                 }
  268.                 else
  269.                 {
  270.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  271.                 }
  272.             }
  273.             else
  274.             {
  275.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  276.             }
  277.             return Plugin_Handled;
  278.         }
  279.         else if ((jobid[client] == 21) || (jobid[client] == 22) || jobid[client] == 23)
  280.         {
  281.             if (Ent != -1)
  282.             {
  283.                 if (IsInLoto(Ent))
  284.                 {
  285.                     GetEdictClassname(Ent, Door, sizeof(Door));
  286.                    
  287.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  288.                     {
  289.                         if (Entity_IsLocked(Ent))
  290.                         {
  291.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  292.                         }
  293.                         else
  294.                         {
  295.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  296.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  297.                             Entity_Lock(Ent);
  298.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  299.                         }
  300.                     }
  301.                 }
  302.                 else
  303.                 {
  304.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  305.                 }
  306.             }
  307.             else
  308.             {
  309.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  310.             }
  311.             return Plugin_Handled;
  312.         }
  313.         else if ((jobid[client] == 24) || (jobid[client] == 25) || jobid[client] == 26)
  314.         {
  315.             if (Ent != -1)
  316.             {
  317.                 if (IsInBank(Ent))
  318.                 {
  319.                     GetEdictClassname(Ent, Door, sizeof(Door));
  320.                    
  321.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  322.                     {
  323.                         if (Entity_IsLocked(Ent))
  324.                         {
  325.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  326.                         }
  327.                         else
  328.                         {
  329.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  330.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  331.                             Entity_Lock(Ent);
  332.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  333.                         }
  334.                     }
  335.                 }
  336.                 else
  337.                 {
  338.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  339.                 }
  340.             }
  341.             else
  342.             {
  343.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  344.             }
  345.             return Plugin_Handled;
  346.         }
  347.         else if ((jobid[client] == 27) || (jobid[client] == 28) || jobid[client] == 29 || jobid[client] == 30)
  348.         {
  349.             if (Ent != -1)
  350.             {
  351.                 if (IsInHosto(Ent))
  352.                 {
  353.                     GetEdictClassname(Ent, Door, sizeof(Door));
  354.                    
  355.                     if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  356.                     {
  357.                         if (Entity_IsLocked(Ent))
  358.                         {
  359.                             PrintToChat(client, "%s : La porte est déjà  fermée a clef.", LOGO);
  360.                         }
  361.                         else
  362.                         {
  363.                             PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
  364.                             PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
  365.                             Entity_Lock(Ent);
  366.                             EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  367.                         }
  368.                     }
  369.                 }
  370.                 else
  371.                 {
  372.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  373.                 }
  374.             }
  375.             else
  376.             {
  377.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  378.             }
  379.             return Plugin_Handled;
  380.         }
  381.         else if (jobid[client] == 0)
  382.         {
  383.             if (Ent != -1)
  384.             {
  385.                 GetEdictClassname(Ent, Door, sizeof(Door));
  386.        
  387.                 if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
  388.                 {
  389.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  390.                 }
  391.             }
  392.             else
  393.             {
  394.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  395.             }
  396.             return Plugin_Handled;
  397.         }
  398.     }
  399.     return Plugin_Continue;
  400. }
  401.  
  402. public Action:Cmd_Unlock(client, args)
  403. {
  404.     decl Ent;
  405.     decl String:Doors[255];
  406.    
  407.     Ent = GetClientAimTarget(client, false);
  408.    
  409.     if (IsPlayerAlive(client))
  410.     {
  411.         new String:SteamId[32];
  412.         GetClientAuthString(client, SteamId, sizeof(SteamId));
  413.        
  414.         if ((Ent == 1276) || (Ent == 1275))
  415.         {
  416.             if (StrEqual(SteamId, "STEAM_0:1:15441843") || jobid [client] == 1 || jobid [client] == 2 || jobid [client] == 3)
  417.             {
  418.                 if (Ent != -1)
  419.                 {
  420.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  421.                    
  422.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  423.                     {
  424.                         if (!Entity_IsLocked(Ent))
  425.                         {
  426.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  427.                         }
  428.                         else
  429.                         {
  430.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  431.                             PrintToChat(client, "%s : Bienvenue chez toi \x03%N.", LOGO, client);
  432.                             Entity_UnLock(Ent);
  433.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  434.                         }
  435.                     }
  436.                 }
  437.                 else
  438.                 {
  439.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  440.                 }
  441.             }
  442.             else
  443.             {
  444.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  445.             }
  446.             return Plugin_Continue;
  447.         }
  448.        
  449.         if ((jobid[client] == 1) || (jobid[client] == 2) || (jobid[client] == 3))
  450.         {
  451.             if (Ent != -1)
  452.             {
  453.                 GetEdictClassname(Ent, Doors, sizeof(Doors));
  454.                
  455.                 if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  456.                 {
  457.                     if (!Entity_IsLocked(Ent))
  458.                     {
  459.                         PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  460.                     }
  461.                     else
  462.                     {
  463.                         PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  464.                         Entity_UnLock(Ent);
  465.                         EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  466.                     }
  467.                 }
  468.             }
  469.             else
  470.             {
  471.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  472.             }
  473.             return Plugin_Handled;
  474.         }
  475.         else if ((jobid[client] == 4) || (jobid[client] == 5))
  476.         {
  477.             if (IsInComico(Ent))
  478.             {
  479.                 if (Ent != -1)
  480.                 {
  481.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  482.                    
  483.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  484.                     {
  485.                         if (!Entity_IsLocked(Ent))
  486.                         {
  487.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  488.                         }
  489.                         else
  490.                         {
  491.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  492.                             Entity_UnLock(Ent);
  493.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  494.                         }
  495.                     }
  496.                 }
  497.                 else
  498.                 {
  499.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  500.                 }
  501.             }
  502.             else
  503.             {
  504.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  505.             }
  506.             return Plugin_Handled;
  507.         }
  508.         else if ((jobid[client] == 6) || (jobid[client] == 7) || (jobid[client] == 8))
  509.         {
  510.             if (IsInMafia(Ent))
  511.             {
  512.                 if (Ent != -1)
  513.                 {
  514.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  515.                    
  516.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  517.                     {
  518.                         if (!Entity_IsLocked(Ent))
  519.                         {
  520.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  521.                         }
  522.                         else
  523.                         {
  524.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  525.                             Entity_UnLock(Ent);
  526.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  527.                         }
  528.                     }
  529.                 }
  530.                 else
  531.                 {
  532.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  533.                 }
  534.             }
  535.             else
  536.             {
  537.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  538.             }
  539.             return Plugin_Handled;
  540.         }
  541.         else if ((jobid[client] == 9) || (jobid[client] == 10) || (jobid[client] == 11))
  542.         {
  543.             if (IsInDealer(Ent))
  544.             {
  545.                 if (Ent != -1)
  546.                 {
  547.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  548.                    
  549.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  550.                     {
  551.                         if (!Entity_IsLocked(Ent))
  552.                         {
  553.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  554.                         }
  555.                         else
  556.                         {
  557.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  558.                             Entity_UnLock(Ent);
  559.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  560.                         }
  561.                     }
  562.                 }
  563.                 else
  564.                 {
  565.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  566.                 }
  567.             }
  568.             else
  569.             {
  570.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  571.             }
  572.             return Plugin_Handled;
  573.         }
  574.         else if ((jobid[client] == 12) || (jobid[client] == 13) || (jobid[client] == 14))
  575.         {
  576.             if (IsInCoach(Ent))
  577.             {
  578.                 if (Ent != -1)
  579.                 {
  580.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  581.                    
  582.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  583.                     {
  584.                         if (!Entity_IsLocked(Ent))
  585.                         {
  586.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  587.                         }
  588.                         else
  589.                         {
  590.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  591.                             Entity_UnLock(Ent);
  592.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  593.                         }
  594.                     }
  595.                 }
  596.                 else
  597.                 {
  598.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  599.                 }
  600.             }
  601.             else
  602.             {
  603.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  604.             }
  605.             return Plugin_Handled;
  606.         }
  607.         else if ((jobid[client] == 15) || (jobid[client] == 16) || (jobid[client] == 17))
  608.         {
  609.             if (IsInEbay(Ent))
  610.             {
  611.                 if (Ent != -1)
  612.                 {
  613.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  614.                    
  615.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  616.                     {
  617.                         if (!Entity_IsLocked(Ent))
  618.                         {
  619.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  620.                         }
  621.                         else
  622.                         {
  623.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  624.                             Entity_UnLock(Ent);
  625.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  626.                         }
  627.                     }
  628.                 }
  629.                 else
  630.                 {
  631.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  632.                 }
  633.             }
  634.             else
  635.             {
  636.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  637.             }
  638.             return Plugin_Handled;
  639.         }
  640.         else if ((jobid[client] == 18) || (jobid[client] == 19) || (jobid[client] == 20))
  641.         {
  642.             if (IsInArmu(Ent))
  643.             {
  644.                 if (Ent != -1)
  645.                 {
  646.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  647.                    
  648.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  649.                     {
  650.                         if (!Entity_IsLocked(Ent))
  651.                         {
  652.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  653.                         }
  654.                         else
  655.                         {
  656.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  657.                             Entity_UnLock(Ent);
  658.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  659.                         }
  660.                     }
  661.                 }
  662.                 else
  663.                 {
  664.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  665.                 }
  666.             }
  667.             else
  668.             {
  669.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  670.             }
  671.             return Plugin_Handled;
  672.         }
  673.         else if ((jobid[client] == 21) || (jobid[client] == 22) || (jobid[client] == 23))
  674.         {
  675.             if (IsInLoto(Ent))
  676.             {
  677.                 if (Ent != -1)
  678.                 {
  679.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  680.                    
  681.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  682.                     {
  683.                         if (!Entity_IsLocked(Ent))
  684.                         {
  685.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  686.                         }
  687.                         else
  688.                         {
  689.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  690.                             Entity_UnLock(Ent);
  691.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  692.                         }
  693.                     }
  694.                 }
  695.                 else
  696.                 {
  697.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  698.                 }
  699.             }
  700.             else
  701.             {
  702.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  703.             }
  704.             return Plugin_Handled;
  705.         }
  706.         else if ((jobid[client] == 24) || (jobid[client] == 25) || (jobid[client] == 26))
  707.         {
  708.             if (IsInBank(Ent))
  709.             {
  710.                 if (Ent != -1)
  711.                 {
  712.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  713.                    
  714.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  715.                     {
  716.                         if (!Entity_IsLocked(Ent))
  717.                         {
  718.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  719.                         }
  720.                         else
  721.                         {
  722.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  723.                             Entity_UnLock(Ent);
  724.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  725.                         }
  726.                     }
  727.                 }
  728.                 else
  729.                 {
  730.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  731.                 }
  732.             }
  733.             else
  734.             {
  735.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  736.             }
  737.             return Plugin_Handled;
  738.         }
  739.         else if ((jobid[client] == 27) || (jobid[client] == 28) || (jobid[client] == 29) || (jobid[client] == 30))
  740.         {
  741.             if (IsInHosto(Ent))
  742.             {
  743.                 if (Ent != -1)
  744.                 {
  745.                     GetEdictClassname(Ent, Doors, sizeof(Doors));
  746.                    
  747.                     if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  748.                     {
  749.                         if (!Entity_IsLocked(Ent))
  750.                         {
  751.                             PrintToChat(client, "%s : La porte est déjà  ouverte.", LOGO);
  752.                         }
  753.                         else
  754.                         {
  755.                             PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
  756.                             Entity_UnLock(Ent);
  757.                             EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
  758.                         }
  759.                     }
  760.                 }
  761.                 else
  762.                 {
  763.                     PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  764.                 }
  765.             }
  766.             else
  767.             {
  768.                 PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  769.             }
  770.             return Plugin_Handled;
  771.         }
  772.         else if (jobid[client] == 0)
  773.         {
  774.             if (Ent != -1)
  775.             {
  776.                 GetEdictClassname(Ent, Doors, sizeof(Doors));
  777.        
  778.                 if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
  779.                 {
  780.                     PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
  781.                 }
  782.             }
  783.             else
  784.             {
  785.                 PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
  786.             }
  787.             return Plugin_Handled;
  788.         }
  789.     }
  790.     return Plugin_Continue;
  791. }
  792.  
  793. public Action:HudTimer(Handle:timer, any:client)
  794. {
  795.     new Handle:hBuffer = StartMessageOne("KeyHintText", client);
  796.    
  797.     new MoneyOffset = FindSendPropOffs("CCSPlayer", "m_iAccount");
  798.    
  799.     money[client] = GetEntData(client, MoneyOffset, 4);
  800.    
  801.     new String:RealZone[999];
  802.    
  803.     if (IsInDistribEbay(client))
  804.     {
  805.         Format(RealZone, sizeof(RealZone), "Distributeur Ebay");
  806.     }
  807.     else if (IsInDistribLoto(client))
  808.     {
  809.         Format(RealZone, sizeof(RealZone), "Distributeur Atlantic");
  810.     }
  811.     else if (IsInDistribMafia(client))
  812.     {
  813.         Format(RealZone, sizeof(RealZone), "Distributeur Mafia");
  814.     }
  815.     else if (IsInDistribBanque(client))
  816.     {
  817.         Format(RealZone, sizeof(RealZone), "Distributeur Banque");
  818.     }
  819.     else if (IsInPlace(client))
  820.     {
  821.         Format(RealZone, sizeof(RealZone), "Place Marchande");
  822.     }
  823.     else if (IsInComico(client))
  824.     {
  825.         Format(RealZone, sizeof(RealZone), "Commissariat");
  826.     }
  827.     else if (IsInFbi(client))
  828.     {
  829.         Format(RealZone, sizeof(RealZone), "F.B.I");
  830.     }
  831.     else if (IsInArmu(client))
  832.     {
  833.         Format(RealZone, sizeof(RealZone), "Armurerie");
  834.     }
  835.     else if (IsInHosto(client))
  836.     {
  837.         Format(RealZone, sizeof(RealZone), "Hôpital");
  838.     }
  839.     else if (IsInDealer(client))
  840.     {
  841.         Format(RealZone, sizeof(RealZone), "Planque des Dealers");
  842.     }
  843.     else if (IsInMafia(client))
  844.     {
  845.         Format(RealZone, sizeof(RealZone), "Planque Mafia");
  846.     }
  847.     else if (IsInLoto(client))
  848.     {
  849.         Format(RealZone, sizeof(RealZone), "Loto");
  850.     }
  851.     else if (IsInBank(client))
  852.     {
  853.         Format(RealZone, sizeof(RealZone), "Banque d'oviscity");
  854.     }
  855.     else if (IsInEbay(client))
  856.     {
  857.         Format(RealZone, sizeof(RealZone), "Ebay");
  858.     }
  859.     else if (IsInCoach(client))
  860.     {
  861.         Format(RealZone, sizeof(RealZone), "Planque Coach");
  862.     }
  863.     else if (IsInJail1(client))
  864.     {
  865.         Format(RealZone, sizeof(RealZone), "Cellule n° 1");
  866.     }
  867.     else if (IsInJail2(client))
  868.     {
  869.         Format(RealZone, sizeof(RealZone), "Cellule n° 2");
  870.     }
  871.     else if (IsInJail3(client))
  872.     {
  873.         Format(RealZone, sizeof(RealZone), "Cellule n° 3");
  874.     }
  875.     else if (IsInJail4(client))
  876.     {
  877.         Format(RealZone, sizeof(RealZone), "Cellule n° 4");
  878.     }
  879.     else
  880.     {
  881.         Format(RealZone, sizeof(RealZone), "Extérieur");
  882.     }
  883.    
  884.     if(!IsClientInGame(client))
  885.     {
  886.         CloseHandle(TimerHud[client]);
  887.         return Plugin_Stop;
  888.     }
  889.    
  890.     if (hBuffer == INVALID_HANDLE)
  891.     {
  892.         PrintToChat(client, "INVALID_HANDLE");
  893.     }
  894.     else
  895.     {  
  896.         new String:tmptext[9999];
  897.         {
  898.             if (g_IsInJail[client] == 0)
  899.             {
  900.                 if (jobid[client] == 1)
  901.                 {
  902.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef d'état\nEntreprise : Etat d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  903.                 }
  904.                 else if (jobid[client] == 0)
  905.                 {
  906.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Sans-Emploi\nEntreprise : Aucune\nSalaire : 50$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  907.                 }
  908.                 else if (jobid[client] == 2)
  909.                 {
  910.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Agent CIA\nEntreprise : Etat d'oviscity\nSalaire : 400$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  911.                 }
  912.                 else if (jobid[client] == 3)
  913.                 {
  914.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Agent du FBI\nEntreprise : Etat d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  915.                 }
  916.                 else if (jobid[client] == 4)
  917.                 {
  918.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Policier\nEntreprise : Etat d'oviscity\nSalaire : 200$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  919.                 }
  920.                 else if (jobid[client] == 5)
  921.                 {
  922.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Gardien\nEntreprise : Etat d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  923.                 }
  924.                 else if (jobid[client] == 6)
  925.                 {
  926.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Mafia\nEntreprise : Mafia d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  927.                 }
  928.                 else if (jobid[client] == 7)
  929.                 {
  930.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Mafieux\nEntreprise : Mafia d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  931.                 }
  932.                 else if (jobid[client] == 8)
  933.                 {
  934.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Mafieux\nEntreprise : Mafia d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  935.                 }
  936.                 else if (jobid[client] == 9)
  937.                 {
  938.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Dealer\nEntreprise : Dealer d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  939.                 }
  940.                 else if (jobid[client] == 10)
  941.                 {
  942.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Dealer\nEntreprise : Dealer d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  943.                 }
  944.                 else if (jobid[client] == 11)
  945.                 {
  946.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Dealer\nEntreprise : Dealer d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  947.                 }
  948.                 else if (jobid[client] == 12)
  949.                 {
  950.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Coach\nEntreprise : Coach d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  951.                 }
  952.                 else if (jobid[client] == 13)
  953.                 {
  954.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Coach\nEntreprise : Coach d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nLevel cut : %i\nZone : %s\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  955.                 }
  956.                 else if (jobid[client] == 14)
  957.                 {
  958.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Coach\nEntreprise : Coach d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  959.                 }
  960.                 else if (jobid[client] == 15)
  961.                 {
  962.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Ebay\nEntreprise : Ebay d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  963.                 }
  964.                 else if (jobid[client] == 16)
  965.                 {
  966.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Vendeur Ebay\nEntreprise : Ebay d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  967.                 }
  968.                 else if (jobid[client] == 17)
  969.                 {
  970.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Vendeur Ebay\nEntreprise : Ebay d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  971.                 }
  972.                 else if (jobid[client] == 18)
  973.                 {
  974.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Armurie\nEntreprise : Armurie d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  975.                 }
  976.                 else if (jobid[client] == 19)
  977.                 {
  978.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Armurier\nEntreprise : Armurie d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  979.                 }
  980.                 else if (jobid[client] == 20)
  981.                 {
  982.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Armurier\nEntreprise : Armurie d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  983.                 }
  984.                 else if (jobid[client] == 21)
  985.                 {
  986.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Loto\nEntreprise : Loto d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  987.                 }
  988.                 else if (jobid[client] == 22)
  989.                 {
  990.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Vendeur de Tickets\nEntreprise : Loto d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  991.                 }
  992.                 else if (jobid[client] == 23)
  993.                 {
  994.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Vendeur de Tickets\nEntreprise : Loto d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  995.                 }
  996.                 else if (jobid[client] == 24)
  997.                 {
  998.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Banquier\nEntreprise : Banque d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  999.                 }
  1000.                 else if (jobid[client] == 25)
  1001.                 {
  1002.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Banquier\nEntreprise : Banque d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  1003.                 }
  1004.                 else if (jobid[client] == 26)
  1005.                 {
  1006.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Banquier\nEntreprise : Banque d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  1007.                 }
  1008.                 else if (jobid[client] == 27)
  1009.                 {
  1010.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Hôpital\nEntreprise : Hôpital d'oviscity\nSalaire : 500$\nCapitale : %i$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], capital[serveur], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  1011.                 }
  1012.                 else if (jobid[client] == 28)
  1013.                 {
  1014.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Médecin\nEntreprise : Hôpital d'oviscity\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  1015.                 }
  1016.                 else if (jobid[client] == 29)
  1017.                 {
  1018.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Infirmier\nEntreprise : Hôpital d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  1019.                 }
  1020.                 else if (jobid[client] == 30)
  1021.                 {
  1022.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chirurgien\nEntreprise : Hôpital d'oviscity\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nLevel cut : %i\nPermis Lourd : %s\nPermis Léger : %s\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, levelcut[client], (permislourd[client] > 0 ? "Oui" : "Non"), (permisleger[client] > 0 ? "Oui" : "Non"));
  1023.                 }
  1024.             }
  1025.             else
  1026.             {
  1027.                 if (jobid[client] == 1)
  1028.                 {
  1029.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef d'état\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1030.                 }
  1031.                 else if (jobid[client] == 0)
  1032.                 {
  1033.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Sans-Emploi\nSalaire : 50$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1034.                 }
  1035.                 else if (jobid[client] == 2)
  1036.                 {
  1037.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Agent CIA\nSalaire : 400$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1038.                 }
  1039.                 else if (jobid[client] == 3)
  1040.                 {
  1041.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Agent du FBI\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1042.                 }
  1043.                 else if (jobid[client] == 4)
  1044.                 {
  1045.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Policier\nSalaire : 200$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1046.                 }
  1047.                 else if (jobid[client] == 5)
  1048.                 {
  1049.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Gardien\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1050.                 }
  1051.                 else if (jobid[client] == 6)
  1052.                 {
  1053.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Mafia\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1054.                 }
  1055.                 else if (jobid[client] == 7)
  1056.                 {
  1057.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Mafieux\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1058.                 }
  1059.                 else if (jobid[client] == 8)
  1060.                 {
  1061.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Mafieux\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1062.                 }
  1063.                 else if (jobid[client] == 9)
  1064.                 {
  1065.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Dealer\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1066.                 }
  1067.                 else if (jobid[client] == 10)
  1068.                 {
  1069.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Dealer\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1070.                 }
  1071.                 else if (jobid[client] == 11)
  1072.                 {
  1073.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Dealer\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1074.                 }
  1075.                 else if (jobid[client] == 12)
  1076.                 {
  1077.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Coach\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1078.                 }
  1079.                 else if (jobid[client] == 13)
  1080.                 {
  1081.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Coach\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1082.                 }
  1083.                 else if (jobid[client] == 14)
  1084.                 {
  1085.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Coach\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1086.                 }
  1087.                 else if (jobid[client] == 15)
  1088.                 {
  1089.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Ebay\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1090.                 }
  1091.                 else if (jobid[client] == 16)
  1092.                 {
  1093.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Vendeur Ebay\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1094.                 }
  1095.                 else if (jobid[client] == 17)
  1096.                 {
  1097.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Vendeur Ebay\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1098.                 }
  1099.                 else if (jobid[client] == 18)
  1100.                 {
  1101.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Armurie\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1102.                 }
  1103.                 else if (jobid[client] == 19)
  1104.                 {
  1105.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Armurier\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1106.                 }
  1107.                 else if (jobid[client] == 20)
  1108.                 {
  1109.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Armurier\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1110.                 }
  1111.                 else if (jobid[client] == 21)
  1112.                 {
  1113.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Loto\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1114.                 }
  1115.                 else if (jobid[client] == 22)
  1116.                 {
  1117.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Vendeur de Tickets\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1118.                 }
  1119.                 else if (jobid[client] == 23)
  1120.                 {
  1121.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Vendeur de Tickets\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1122.                 }
  1123.                 else if (jobid[client] == 24)
  1124.                 {
  1125.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Banquier\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1126.                 }
  1127.                 else if (jobid[client] == 25)
  1128.                 {
  1129.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Banquier\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1130.                 }
  1131.                 else if (jobid[client] == 26)
  1132.                 {
  1133.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Apprenti Banquier\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1134.                 }
  1135.                 else if (jobid[client] == 27)
  1136.                 {
  1137.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chef Hôpital\nSalaire : 500$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1138.                 }
  1139.                 else if (jobid[client] == 28)
  1140.                 {
  1141.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Médecin\nSalaire : 300$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1142.                 }
  1143.                 else if (jobid[client] == 29)
  1144.                 {
  1145.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Infirmier\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1146.                 }
  1147.                 else if (jobid[client] == 30)
  1148.                 {
  1149.                     Format(tmptext, sizeof(tmptext), "Argent : %i$\nEn banque : %i$\nMétier : Chirurgien\nSalaire : 100$\nHorloge : %i%i:%i%i\nZone : %s\nTemps de jail : %is\n", money[client], bank[client], g_countheure1, g_countheure2, g_countminute1, g_countminute2, RealZone, g_jailtime[client]);
  1150.                 }
  1151.             }
  1152.             BfWriteByte(hBuffer, 1);
  1153.             BfWriteString(hBuffer, tmptext);
  1154.             EndMessage();
  1155.         }
  1156.     }
  1157.     return Plugin_Continue;
  1158. }
Add Comment
Please, Sign In to add comment