Raised This Month: $ Target: $400
 0% 

looking for a selection of grenades for murder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakonda001
Member
Join Date: Jul 2020
Old 07-09-2020 , 05:27   looking for a selection of grenades for murder
Reply With Quote #1

I'm looking for a plugin for picking up grenades by the number of frags on the map, for example, if a player picks up 15 frags, he can already pick up grenades from the ground
anakonda001 is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 07-09-2020 , 06:50   Re: looking for a selection of grenades for murder
Reply With Quote #2

Code:
#pragma semicolon 1 #include <amxmodx> #include <cstrike> #include <hamsandwich> #define IsPlayer(%1) ( 1 <= %1 <= g_iMaxPlayers ) new pCvarRequiredKills, pCvarShowMessage, g_iMaxPlayers; new bool:g_bMessageShown[33]; public plugin_init() {     RegisterHam(Ham_Touch, "armoury_entity", "PlayerTouchesWeapon");     pCvarRequiredKills = register_cvar("nades_required_kills", "15"); // Required kills to allow nades pickup     pCvarShowMessage = register_cvar("nades_show_message", "0"); // Change to 1 if you want to show message.     g_iMaxPlayers = get_maxplayers(); } public PlayerTouchesWeapon(iTouched , iToucher) {     if(IsPlayer(iToucher))     {         new armouryIndex = cs_get_armoury_type(iTouched);                 if(armouryIndex == CSW_HEGRENADE || armouryIndex == CSW_FLASHBANG || armouryIndex == CSW_SMOKEGRENADE)         {             // Message //             if(get_pcvar_num(pCvarShowMessage))             {                 // Disable Pickup //                 if(get_user_frags(iToucher) < get_pcvar_num(pCvarRequiredKills))                 {                     // To prevent message spam //                     if(!g_bMessageShown[iToucher])                     {                         client_print(iToucher, print_chat, "You cant pickup nades. You need %i total frags.", get_pcvar_num(pCvarRequiredKills));                         g_bMessageShown[iToucher] = true;                     }                     // Block //                     return HAM_SUPERCEDE;                 }                 // Allow Pickup //                 else                 {                     // Allow //                     return HAM_IGNORED;                 }             }             // No message //             else                 return get_user_frags(iToucher) >= get_pcvar_num(pCvarRequiredKills) ? HAM_IGNORED : HAM_SUPERCEDE;         }     }     return HAM_IGNORED; }
ZaX is offline
anakonda001
Member
Join Date: Jul 2020
Old 07-09-2020 , 07:07   Re: looking for a selection of grenades for murder
Reply With Quote #3

Quote:
Originally Posted by ZaX View Post
Code:
#pragma semicolon 1 #include <amxmodx> #include <cstrike> #include <hamsandwich> #define IsPlayer(%1) ( 1 <= %1 <= g_iMaxPlayers ) new pCvarRequiredKills, pCvarShowMessage, g_iMaxPlayers; new bool:g_bMessageShown[33]; public plugin_init() {     RegisterHam(Ham_Touch, "armoury_entity", "PlayerTouchesWeapon");     pCvarRequiredKills = register_cvar("nades_required_kills", "15"); // Required kills to allow nades pickup     pCvarShowMessage = register_cvar("nades_show_message", "0"); // Change to 1 if you want to show message.     g_iMaxPlayers = get_maxplayers(); } public PlayerTouchesWeapon(iTouched , iToucher) {     if(IsPlayer(iToucher))     {         new armouryIndex = cs_get_armoury_type(iTouched);                 if(armouryIndex == CSW_HEGRENADE || armouryIndex == CSW_FLASHBANG || armouryIndex == CSW_SMOKEGRENADE)         {             // Message //             if(get_pcvar_num(pCvarShowMessage))             {                 // Disable Pickup //                 if(get_user_frags(iToucher) < get_pcvar_num(pCvarRequiredKills))                 {                     // To prevent message spam //                     if(!g_bMessageShown[iToucher])                     {                         client_print(iToucher, print_chat, "You cant pickup nades. You need %i total frags.", get_pcvar_num(pCvarRequiredKills));                         g_bMessageShown[iToucher] = true;                     }                     // Block //                     return HAM_SUPERCEDE;                 }                 // Allow Pickup //                 else                 {                     // Allow //                     return HAM_IGNORED;                 }             }             // No message //             else                 return get_user_frags(iToucher) >= get_pcvar_num(pCvarRequiredKills) ? HAM_IGNORED : HAM_SUPERCEDE;         }     }     return HAM_IGNORED; }
something grenades don't fall to the ground after a murder
anakonda001 is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 07-09-2020 , 10:46   Re: looking for a selection of grenades for murder
Reply With Quote #4

What ? I cant understand what you saying
ZaX is offline
anakonda001
Member
Join Date: Jul 2020
Old 07-09-2020 , 11:34   Re: looking for a selection of grenades for murder
Reply With Quote #5

Quote:
Originally Posted by ZaX View Post
What ? I cant understand what you saying
grenades don't fall from players
anakonda001 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode