mayalexis Posté(e) le 9 avril 2010 Share Posté(e) le 9 avril 2010 bonjour a tous et a toi FreeM@n j'ai une mission a vous confier :-P. voila j'ai le plugin anr.amxx qui sert a n'avoir aucun recul c'est un no-recoil il fonctionne parfaitement mais je cherche a le modifier et malheureusement je ne trouve pas la solution. j'aimerais que le no-recoil soit seulement pour les admins car actuellement c est pour tout les joueurs, je copie/colle le anr.sma si vous pouvez me trouver se dont je dois modifier pour l'avoir no-recoil only admin merci et vous tous /* AMX Mod X * Admin no recoil * * / \ / \ ___________________________ * / / \_/ \ \ / \ * \__/\ /\__/ / GIVE ME A CARROT OR I WILL \ * \O O/ \ BLOW UP YOUR HOUSE / * ___/ ^ \___ / ___________________________/ * \___/ /_/ * _/ \_ * __// \\__ * /___\/_\/___\ * * © Copyright 2008 by FakeNick * * This file is provided as is (no warranties) * * DESCRIPTION * This plugin allows admins with ADMIN_KICK flag to earn no recoil. * * MODULES * fakemeta * hamsandwich * * CVARS * admin_no_recoil_on - turns plugin on/off * admin_no_recoil_sound - turns "activated" sound on/off * * VERSIONS * 1.0 - first release * */ #include <amxmodx> #include <hamsandwich> #include <fakemeta> new const VERSION[] = "1.0" new const sound_activated[] = "norecoil/activ.wav" new pcvar_on,pcvar_sound new g_norecoil[33],Float:g_angle[3] = {0.0,0.0,0.0} public plugin_init() { register_plugin("Admin no recoil", VERSION, "FakeNick"); pcvar_on = register_cvar("admin_no_recoil_on","1"); if(get_pcvar_num(pcvar_on)) { pcvar_sound = register_cvar("admin_no_recoil_sound","1") RegisterHam(Ham_Spawn,"player","func_spawn",1); register_forward(FM_PlayerPreThink,"func_prethink"); } } public plugin_precache() { engfunc(EngFunc_PrecacheSound,sound_activated); } public func_spawn(id) { if(!is_user_alive(id)) return; if(get_user_flags(id) & ADMIN_KICK) { g_norecoil[id] = true; if(get_pcvar_num(pcvar_sound)) client_cmd(id,"spk %s",sound_activated); client_print(id,print_chat,"[ANR] Admin no recoil activated! Have Fun!"); } } public func_prethink(id) { if(!is_user_alive(id) && !g_norecoil[id]) return; set_pev(id,pev_punchangle,g_angle); } Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Cgillian Posté(e) le 9 avril 2010 Share Posté(e) le 9 avril 2010 Bon moi perso je mi conné pas en codage de plugins ... Mais sa va te servire a quoi que tous les admins ait un no recoil ? A vidé ton serveur ? a te faire insulté ? a avoir une réputation de cheater ? ^^ Réfléchi a tout sa Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
PuNisH YourSelF Posté(e) le 9 avril 2010 Share Posté(e) le 9 avril 2010 javoue Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
dentelle Posté(e) le 9 avril 2010 Share Posté(e) le 9 avril 2010 Ca ne le donne qu'aux admins, le truc c'est que ça l'enlève pas quand un admin se déconnecte, donc le mec qui se connecte et qui prend le slot qu'un admin a occuppé, ben il l'a aussi :P Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
Rejoindre la conversation
Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.