mario9916 Posted January 16, 2011 Share Posted January 16, 2011 Bonjours , J'ai une question j'ai fait mon serveur Zm avec le plugin Zombie 2.5 Et le probleme ses que les zombi peuve ramaser les arme a terre Donc je recherche un plugin qui peuve surpimmer les arme a terro (SOl) Merci de votre compensation Quote Link to comment Share on other sites More sharing options...
Borisbe Posted January 16, 2011 Share Posted January 16, 2011 Salut, Tu utilises le plugin ZombieReloaded ? Si oui, as-tu mis à jour le fichier sdkhooks.games.txt ? (à placer dans ../cstrike/addons/sourcemod/gamedata/) Quote Link to comment Share on other sites More sharing options...
Steven-NSNF Posted January 17, 2011 Share Posted January 17, 2011 Pour les armes aux T , le post du haut devrait t'aider Pour supprimer les armes au sol /* SM Weapon Cleanup bY TechKnow */ #include <sourcemod> #include <sdktools> #define PLUGIN_VERSION "1.2" public Plugin:myinfo = { name = "SM Weapon Cleanup", author = "TechKnow", description = "Removes loose weapons droped", version = PLUGIN_VERSION, url = "http://www.sourcemod.net/" }; new Handle:Cvar_Removeweapons; new g_WeaponParent; public OnPluginStart() { CreateConVar("sm_Weaponcleanup_version", PLUGIN_VERSION, "WeaponCleanup version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY); Cvar_Removeweapons = CreateConVar("Removeweapons_on", "1", "1 Removeweapons on 0 is off", FCVAR_PLUGIN|FCVAR_REPLICATED|FCVAR_NOTIFY); g_WeaponParent = FindSendPropOffs("CBaseCombatWeapon", "m_hOwnerEntity"); RegAdminCmd("sm_cleanup", Command_Manual, ADMFLAG_SLAY); HookEventEx("player_death", Cleanup, EventHookMode_Post); HookEventEx("round_start", Cleanup, EventHookMode_Post); } public Action:Cleanup(Handle:event,const String:name[],bool:dontBroadcast) { // By Kigen (c) 2008 - Please give me credit. :) if (!GetConVarBool(Cvar_Removeweapons)) { return Plugin_Continue; } new maxent = GetMaxEntities(), String:weapon[64]; for (new i=GetMaxClients();i<maxent;i++) { if ( IsValidEdict(i) && IsValidEntity(i) ) { GetEdictClassname(i, weapon, sizeof(weapon)); if ( ( StrContains(weapon, "weapon_") != -1 || StrContains(weapon, "item_") != -1 ) && GetEntDataEnt2(i, g_WeaponParent) == -1 ) RemoveEdict(i); } } return Plugin_Continue; } public Action:Command_Manual(client, args) { // By Kigen (c) 2008 - Please give me credit. :) new maxent = GetMaxEntities(), String:weapon[64]; for (new i=GetMaxClients();i<maxent;i++) { if ( IsValidEdict(i) && IsValidEntity(i) ) { GetEdictClassname(i, weapon, sizeof(weapon)); if ( ( StrContains(weapon, "weapon_") != -1 || StrContains(weapon, "item_") != -1 ) && GetEntDataEnt2(i, g_WeaponParent) == -1 ) RemoveEdict(i); } } return Plugin_Continue; } Lien original : http://forums.alliedmods.net/showthread.php?p=870661 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.