Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Action:Cmd_Lock(client, args)
- {
- decl Ent;
- decl String:Door[255];
- Ent = GetClientAimTarget(client, false);
- if (IsPlayerAlive(client))
- {
- new String:SteamId[32];
- GetClientAuthString(client, SteamId, sizeof(SteamId));
- if ((Ent == 1276) || (Ent == 1275))
- {
- if (Ent != -1)
- {
- if (StrEqual(SteamId, "STEAM_0:1:15441843") || jobid [client] == 1 || jobid [client] == 2 || jobid [client] == 3)
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Continue;
- }
- if ((jobid[client] == 1) || (jobid[client] == 2) || (jobid[client] == 3))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 4) || (jobid[client] == 5))
- {
- if (Ent != -1)
- {
- if (IsInComico(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 6) || (jobid[client] == 7) || jobid[client] == 8)
- {
- if (Ent != -1)
- {
- if (IsInMafia(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 9) || (jobid[client] == 10) || jobid[client] == 11)
- {
- if (Ent != -1)
- {
- if (IsInDealer(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 12) || (jobid[client] == 13) || jobid[client] == 14)
- {
- if (Ent != -1)
- {
- if (IsInCoach(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 15) || (jobid[client] == 16) || jobid[client] == 17)
- {
- if (Ent != -1)
- {
- if (IsInEbay(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 18) || (jobid[client] == 19) || jobid[client] == 20)
- {
- if (Ent != -1)
- {
- if (IsInArmu(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 21) || (jobid[client] == 22) || jobid[client] == 23)
- {
- if (Ent != -1)
- {
- if (IsInLoto(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 24) || (jobid[client] == 25) || jobid[client] == 26)
- {
- if (Ent != -1)
- {
- if (IsInBank(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 27) || (jobid[client] == 28) || jobid[client] == 29 || jobid[client] == 30)
- {
- if (Ent != -1)
- {
- if (IsInHosto(Ent))
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- if (Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà fermée a clef.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez fermé la porte a clef.", LOGO);
- PrintToConsole(client, "%s : La porte %d est maintenant fermée a clef.", LOGO, Ent);
- Entity_Lock(Ent);
- EmitSoundToAll("doors/default_locked.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if (jobid[client] == 0)
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Door, sizeof(Door));
- if (StrEqual(Door, "func_door_rotating") || StrEqual(Door, "prop_door_rotating") || StrEqual(Door, "func_door"))
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- }
- return Plugin_Continue;
- }
- public Action:Cmd_Unlock(client, args)
- {
- decl Ent;
- decl String:Doors[255];
- Ent = GetClientAimTarget(client, false);
- if (IsPlayerAlive(client))
- {
- new String:SteamId[32];
- GetClientAuthString(client, SteamId, sizeof(SteamId));
- if ((Ent == 1276) || (Ent == 1275))
- {
- if (StrEqual(SteamId, "STEAM_0:1:15441843") || jobid [client] == 1 || jobid [client] == 2 || jobid [client] == 3)
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- PrintToChat(client, "%s : Bienvenue chez toi \x03%N.", LOGO, client);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Continue;
- }
- if ((jobid[client] == 1) || (jobid[client] == 2) || (jobid[client] == 3))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 4) || (jobid[client] == 5))
- {
- if (IsInComico(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 6) || (jobid[client] == 7) || (jobid[client] == 8))
- {
- if (IsInMafia(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 9) || (jobid[client] == 10) || (jobid[client] == 11))
- {
- if (IsInDealer(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 12) || (jobid[client] == 13) || (jobid[client] == 14))
- {
- if (IsInCoach(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 15) || (jobid[client] == 16) || (jobid[client] == 17))
- {
- if (IsInEbay(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 18) || (jobid[client] == 19) || (jobid[client] == 20))
- {
- if (IsInArmu(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 21) || (jobid[client] == 22) || (jobid[client] == 23))
- {
- if (IsInLoto(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 24) || (jobid[client] == 25) || (jobid[client] == 26))
- {
- if (IsInBank(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if ((jobid[client] == 27) || (jobid[client] == 28) || (jobid[client] == 29) || (jobid[client] == 30))
- {
- if (IsInHosto(Ent))
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- if (!Entity_IsLocked(Ent))
- {
- PrintToChat(client, "%s : La porte est déjà ouverte.", LOGO);
- }
- else
- {
- PrintToChat(client, "%s : Vous avez ouvert la porte.", LOGO);
- Entity_UnLock(Ent);
- EmitSoundToAll("doors/latchunlocked1.wav", Ent, SNDCHAN_AUTO, SNDLEVEL_NORMAL);
- }
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- return Plugin_Handled;
- }
- else if (jobid[client] == 0)
- {
- if (Ent != -1)
- {
- GetEdictClassname(Ent, Doors, sizeof(Doors));
- if (StrEqual(Doors, "func_door_rotating") || StrEqual(Doors, "prop_door_rotating") || StrEqual(Doors, "func_door"))
- {
- PrintToChat(client, "%s : Vous n'avez pas les clef de cette porte.", LOGO);
- }
- }
- else
- {
- PrintToChat(client, "%s : Vous devez visé une porte.", LOGO);
- }
- return Plugin_Handled;
- }
- }
- return Plugin_Continue;
- }
- public Action:HudTimer(Handle:timer, any:client)
- {
- new Handle:hBuffer = StartMessageOne("KeyHintText", client);
- new MoneyOffset = FindSendPropOffs("CCSPlayer", "m_iAccount");
- money[client] = GetEntData(client, MoneyOffset, 4);
- new String:RealZone[999];
- if (IsInDistribEbay(client))
- {
- Format(RealZone, sizeof(RealZone), "Distributeur Ebay");
- }
- else if (IsInDistribLoto(client))
- {
- Format(RealZone, sizeof(RealZone), "Distributeur Atlantic");
- }
- else if (IsInDistribMafia(client))
- {
- Format(RealZone, sizeof(RealZone), "Distributeur Mafia");
- }
- else if (IsInDistribBanque(client))
- {
- Format(RealZone, sizeof(RealZone), "Distributeur Banque");
- }
- else if (IsInPlace(client))
- {
- Format(RealZone, sizeof(RealZone), "Place Marchande");
- }
- else if (IsInComico(client))
- {
- Format(RealZone, sizeof(RealZone), "Commissariat");
- }
- else if (IsInFbi(client))
- {
- Format(RealZone, sizeof(RealZone), "F.B.I");
- }
- else if (IsInArmu(client))
- {
- Format(RealZone, sizeof(RealZone), "Armurerie");
- }
- else if (IsInHosto(client))
- {
- Format(RealZone, sizeof(RealZone), "Hôpital");
- }
- else if (IsInDealer(client))
- {
- Format(RealZone, sizeof(RealZone), "Planque des Dealers");
- }
- else if (IsInMafia(client))
- {
- Format(RealZone, sizeof(RealZone), "Planque Mafia");
- }
- else if (IsInLoto(client))
- {
- Format(RealZone, sizeof(RealZone), "Loto");
- }
- else if (IsInBank(client))
- {
- Format(RealZone, sizeof(RealZone), "Banque d'oviscity");
- }
- else if (IsInEbay(client))
- {
- Format(RealZone, sizeof(RealZone), "Ebay");
- }
- else if (IsInCoach(client))
- {
- Format(RealZone, sizeof(RealZone), "Planque Coach");
- }
- else if (IsInJail1(client))
- {
- Format(RealZone, sizeof(RealZone), "Cellule n° 1");
- }
- else if (IsInJail2(client))
- {
- Format(RealZone, sizeof(RealZone), "Cellule n° 2");
- }
- else if (IsInJail3(client))
- {
- Format(RealZone, sizeof(RealZone), "Cellule n° 3");
- }
- else if (IsInJail4(client))
- {
- Format(RealZone, sizeof(RealZone), "Cellule n° 4");
- }
- else
- {
- Format(RealZone, sizeof(RealZone), "Extérieur");
- }
- if(!IsClientInGame(client))
- {
- CloseHandle(TimerHud[client]);
- return Plugin_Stop;
- }
- if (hBuffer == INVALID_HANDLE)
- {
- PrintToChat(client, "INVALID_HANDLE");
- }
- else
- {
- new String:tmptext[9999];
- {
- if (g_IsInJail[client] == 0)
- {
- if (jobid[client] == 1)
- {
- 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"));
- }
- else if (jobid[client] == 0)
- {
- 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"));
- }
- else if (jobid[client] == 2)
- {
- 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"));
- }
- else if (jobid[client] == 3)
- {
- 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"));
- }
- else if (jobid[client] == 4)
- {
- 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"));
- }
- else if (jobid[client] == 5)
- {
- 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"));
- }
- else if (jobid[client] == 6)
- {
- 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"));
- }
- else if (jobid[client] == 7)
- {
- 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"));
- }
- else if (jobid[client] == 8)
- {
- 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"));
- }
- else if (jobid[client] == 9)
- {
- 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"));
- }
- else if (jobid[client] == 10)
- {
- 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"));
- }
- else if (jobid[client] == 11)
- {
- 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"));
- }
- else if (jobid[client] == 12)
- {
- 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"));
- }
- else if (jobid[client] == 13)
- {
- 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"));
- }
- else if (jobid[client] == 14)
- {
- 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"));
- }
- else if (jobid[client] == 15)
- {
- 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"));
- }
- else if (jobid[client] == 16)
- {
- 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"));
- }
- else if (jobid[client] == 17)
- {
- 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"));
- }
- else if (jobid[client] == 18)
- {
- 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"));
- }
- else if (jobid[client] == 19)
- {
- 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"));
- }
- else if (jobid[client] == 20)
- {
- 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"));
- }
- else if (jobid[client] == 21)
- {
- 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"));
- }
- else if (jobid[client] == 22)
- {
- 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"));
- }
- else if (jobid[client] == 23)
- {
- 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"));
- }
- else if (jobid[client] == 24)
- {
- 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"));
- }
- else if (jobid[client] == 25)
- {
- 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"));
- }
- else if (jobid[client] == 26)
- {
- 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"));
- }
- else if (jobid[client] == 27)
- {
- 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"));
- }
- else if (jobid[client] == 28)
- {
- 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"));
- }
- else if (jobid[client] == 29)
- {
- 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"));
- }
- else if (jobid[client] == 30)
- {
- 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"));
- }
- }
- else
- {
- if (jobid[client] == 1)
- {
- 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]);
- }
- else if (jobid[client] == 0)
- {
- 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]);
- }
- else if (jobid[client] == 2)
- {
- 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]);
- }
- else if (jobid[client] == 3)
- {
- 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]);
- }
- else if (jobid[client] == 4)
- {
- 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]);
- }
- else if (jobid[client] == 5)
- {
- 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]);
- }
- else if (jobid[client] == 6)
- {
- 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]);
- }
- else if (jobid[client] == 7)
- {
- 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]);
- }
- else if (jobid[client] == 8)
- {
- 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]);
- }
- else if (jobid[client] == 9)
- {
- 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]);
- }
- else if (jobid[client] == 10)
- {
- 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]);
- }
- else if (jobid[client] == 11)
- {
- 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]);
- }
- else if (jobid[client] == 12)
- {
- 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]);
- }
- else if (jobid[client] == 13)
- {
- 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]);
- }
- else if (jobid[client] == 14)
- {
- 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]);
- }
- else if (jobid[client] == 15)
- {
- 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]);
- }
- else if (jobid[client] == 16)
- {
- 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]);
- }
- else if (jobid[client] == 17)
- {
- 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]);
- }
- else if (jobid[client] == 18)
- {
- 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]);
- }
- else if (jobid[client] == 19)
- {
- 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]);
- }
- else if (jobid[client] == 20)
- {
- 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]);
- }
- else if (jobid[client] == 21)
- {
- 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]);
- }
- else if (jobid[client] == 22)
- {
- 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]);
- }
- else if (jobid[client] == 23)
- {
- 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]);
- }
- else if (jobid[client] == 24)
- {
- 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]);
- }
- else if (jobid[client] == 25)
- {
- 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]);
- }
- else if (jobid[client] == 26)
- {
- 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]);
- }
- else if (jobid[client] == 27)
- {
- 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]);
- }
- else if (jobid[client] == 28)
- {
- 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]);
- }
- else if (jobid[client] == 29)
- {
- 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]);
- }
- else if (jobid[client] == 30)
- {
- 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]);
- }
- }
- BfWriteByte(hBuffer, 1);
- BfWriteString(hBuffer, tmptext);
- EndMessage();
- }
- }
- return Plugin_Continue;
- }
Add Comment
Please, Sign In to add comment