Jump to content
View in the app

A better way to browse. Learn more.

Forum Supreme-Elite

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SrazZz

Utilisateur
  • Joined

  • Last visited

  1. Si les skins sont dans tes dossiers (que tu as mis toit même) et que cela ne fonctionne pas, cela provient du skin en lui-même
  2. Si tu met les fichiers des skins dans ton répertoire de css (c:/****/steam/steamapps/***/counter strike source/sctrike), tu vois les skins sur ton serveur ? Si oui, revois bien le mirroir perso (et l'adresse de ton mirroir dans server.cfg).
  3. Bonjour, Ayant modifié le script LastMan, voici ce que j'obtient : /* LastMan.sp Description: Plays the lastman sound when you are the last player on your team. Versions: 1.0 * Initial Release 1.1 * Changed To EmitSound * Added a g_Cvar for removing the chat messages * Added a g_Cvar for removing the announcements * Added a g_Cvar for the filename to play 1.1.1 * Lots of code cleanup * Added a g_Cvar to disable the plugin 1.2 * Changed the way sound loading is managed * Changed the enable preference * Changed naming conventions * Removed IsAlive() 1.2.1 * Moved sound setup to OnConfigsExecuted * Made config file autoloaded */ #include <sourcemod> #include <sdktools> #pragma semicolon 1 #define PLUGIN_VERSION "1.2.1" #define MAX_FILE_LEN 80 // Plugin definitions public Plugin:myinfo = { name = "LastMan", author = "dalto", description = "Last Man Sound", version = PLUGIN_VERSION, url = "http://forums.alliedmods.net" }; new g_soundPreference[MAXPLAYERS + 1]; new Handle:g_CvarChat = INVALID_HANDLE; new Handle:g_CvarAnnounce = INVALID_HANDLE; new Handle:g_CvarSoundName = INVALID_HANDLE; new Handle:g_CvarEnabled = INVALID_HANDLE; new String:g_soundName[MAX_FILE_LEN]; public OnPluginStart() { // Before we do anything else lets make sure that the plugin is not disabled g_CvarEnabled = CreateConVar("sm_lastman_enable", "1", "Enables the LastMan plugin"); // Create the rest of the g_Cvar's CreateConVar("sm_lastman_version", PLUGIN_VERSION, "Last Man Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY); g_CvarAnnounce = CreateConVar("sm_lastman_announce", "1", "Announcement preferences"); g_CvarChat = CreateConVar("sm_lastman_chat", "1", "Chat preferences"); g_CvarSoundName = CreateConVar("sm_lastman_sound", "nod/dct.wav", "The sound to play"); HookConVarChange(g_CvarSoundName, OnSoundChanged); // Execute the config file AutoExecConfig(true, "lastman"); HookEvent("player_death", EventPlayerDeath); RegConsoleCmd("sound_dct", PanelLastman); } public OnConfigsExecuted() { GetConVarString(g_CvarSoundName, g_soundName, MAX_FILE_LEN); decl String:buffer[MAX_FILE_LEN]; PrecacheSound(g_soundName, true); Format(buffer, sizeof(buffer), "sound/%s", g_soundName); AddFileToDownloadsTable(buffer); } public OnSoundChanged(Handle:convar, const String:oldValue[], const String:newValue[]) { decl String:buffer[MAX_FILE_LEN]; strcopy(g_soundName, sizeof(g_soundName), newValue); PrecacheSound(g_soundName, true); Format(buffer, sizeof(buffer), "sound/%s", g_soundName); AddFileToDownloadsTable(buffer); } public Action:TimerAnnounce(Handle:timer, any:client) { if(client && IsClientInGame(client) && !IsFakeClient(client)) { PrintToChat(client, "Tapez !sound_dct pour entendre (ou non) le son du Dernier CT"); } } // When a new client is authorized we reset sound preferences // and let them know how to turn the sounds on and off public OnClientAuthorized(client, const String:auth[]) { if(client && !IsFakeClient(client)) { g_soundPreference[client] = 1; if(GetConVarBool(g_CvarAnnounce)) { CreateTimer(30.0, TimerAnnounce, client); } } } // The death event public EventPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { if(!GetConVarBool(g_CvarEnabled)) { return; } new victimId = GetEventInt(event, "userid"); new victimClient = GetClientOfUserId(victimId); new killedTeam = GetClientTeam(victimClient); new playersConnected = GetMaxClients(); // We check to see if there is only one person left. new lastManId = 0; for (new i = 1; i < playersConnected; i++) { if(IsClientInGame(i)) { if(killedTeam==GetClientTeam(i) && IsPlayerAlive(i)) { if(lastManId) { lastManId = -1; } else { lastManId = i; } } } } // If there is only person left than we play a sound and print a message if(lastManId > 0) { new String:clientname[64]; GetClientName(lastManId, clientname, sizeof(clientname)); if(GetConVarBool(g_CvarChat)) { PrintToChatAll("\x04[DCT]\x03 **** Dernier CT ****", clientname); PrintToChatAll("\x04[DCT]\x03 Le Dernier CT peut tuer tout le monde !", clientname); PrintToChatAll("\x04[DCT]\x03 ! Il a un skin de Terroriste !", clientname); PrintToChatAll("\x04[DCT]\x03 **** Dernier CT ****", clientname); } if(g_soundPreference[lastManId] && !IsFakeClient(lastManId)) { EmitSoundToClient(lastManId, g_soundName); } } } // This sets enables or disables the sounds public PanelHandlerLastMan(Handle:menu, MenuAction:action, param1, param2) { if (action == MenuAction_Select) if(param2 == 2) g_soundPreference[param1] = 0; else g_soundPreference[param1] = param2; else if(action == MenuAction_Cancel) PrintToServer("Client %d's Last Man menu was cancelled. Reason: %d", param1, param2); } // This creates the lastman panel public Action:PanelLastman(client, args) { new Handle:panel = CreatePanel(); SetPanelTitle(panel, "Activer le son du DCT ?"); DrawPanelItem(panel, "Oui"); DrawPanelItem(panel, "Non"); SendPanelToClient(panel, client, PanelHandlerLastMan, 20); CloseHandle(panel); return Plugin_Handled; } Comment faire pour que ceci se destine qu'à l'équipe 3 (Donc CT) ? Je vous remercie d'avance
  4. Avez-vous un mirroir perso ? Cela est peut-être que les fichiers ne sont pas sur un mirroir perso.
  5. SrazZz replied to SrazZz's topic in Demande
    Merci d'avance faut-il savoir des bases avant le sourcepawn ? c / c++ ? Sinon, quels sont vos éditeurs de codes préférés ? Merci
  6. SrazZz posted a topic in Demande
    Bonjour, je souhaiterais un plugin de DCT Complexe en SourcePawn. Pseudo IG : SrazZz • SteamID : sharkoudu95 (STEAM_0:0:29058339) • Lien vers topic de présentation : http://forum.supreme-elite.fr/topic/3371-ma-presentation/page__view__findpost__p__35742__hl__srazzz__fromsearch__1 • Nom de la team : Team NoD • URL du site/forum de la team : http://www.night-of-dream.fr/ • Description du plugin souhaité (détaillée a fond) : Bonjour, Je recherche un plugin en SourcePawn qui me ferait ceci : Une musique qui sera dans /sound/nod/dct.wavTrois messages dans le chat :-= Dernier CT =- Le dernier CT peut tuer tout le monde Attention, il est déguisé en T -= Dernier CT =- Et en haut au centre, toutes les 5 secondes: Le DCT peut tuer tout le monde Il ait un skin (MDL du skin : models\player\elis\po\police.mdl) si le joueur ait le flag T, sinon, il restera comme il est.Le DCT aura 125hpJe ne sais pas si ce script peut se faire, mais cela serait très bien, si une fonction n'est pas faisable, ce n'est pas grave. Merci, SrazZz
  7. Phéno, j'ai apris ajourd'huis que je suis en soirée le 31 donc je ne pourrais pas --'
  8. Domage, plus de place
  9. En jeu, tout le monde dis que je fais 15 ans Sinon, merci
  10. Salut, Je m'apelle Clément (SrazZz in game), j'ai 13 ans. J'aime bien jouer a CSS et TF2. J'aime aussi votre serveur Ba_Jail. J'aime bien vos serveur, bonne ambiance. J'aime bien aider les gens, j'ai de la connaissance en langage web (rien a voir mais bon ) Voila Si vous avez des questions, demandez moi

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.