Raised This Month: $51 Target: $400
 12% 

[CS:GO Knife Server] allowing only knife


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
g00gl3
Member
Join Date: Feb 2016
Location: bulgaria
Old 02-14-2016 , 09:16   [CS:GO Knife Server] allowing only knife
Reply With Quote #1

hello

how can help me please i need help with plugin.
i want to remove all weapons from the map, On Round Start
and weapons from spawn weapons and allowing only knife just knife for my knife fight server.

thank you alot my friends
have a nice day
sorry for my bad english

Last edited by g00gl3; 02-14-2016 at 09:18.
g00gl3 is offline
007Rat
Junior Member
Join Date: Feb 2016
Location: United States
Old 02-14-2016 , 09:19   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #2

Quote:
Originally Posted by g00gl3 View Post
hello

how can help me please i need help with plugin.
i want to remove all weapons from the map, On Round Start
and weapons from spawn weapons and allowing only knife just knife for my knife fight server.

thank you alot my friends
have a nice day
sorry for my bad english
Did you check the plug-ins section? Or how about that handy search bar that says "search"? If you didn't do those things then I suggest that you go and do them.

https://forums.alliedmods.net/showthread.php?p=950174

Last edited by 007Rat; 02-14-2016 at 09:24. Reason: Added a plug in page for his needs...
007Rat is offline
g00gl3
Member
Join Date: Feb 2016
Location: bulgaria
Old 02-14-2016 , 09:25   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #3

Quote:
Originally Posted by 007Rat View Post
Did you check the plug-ins section? Or how about that handy search bar that says "search"? If you didn't do those things then I suggest that you go and do them.

https://forums.alliedmods.net/showthread.php?p=950174
I searched but could not find anything then you can help me please ?

Last edited by g00gl3; 02-14-2016 at 09:30.
g00gl3 is offline
007Rat
Junior Member
Join Date: Feb 2016
Location: United States
Old 02-14-2016 , 10:18   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?p=950174
007Rat is offline
g00gl3
Member
Join Date: Feb 2016
Location: bulgaria
Old 02-14-2016 , 10:22   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #5

Quote:
Originally Posted by 007Rat View Post
i tested this and its not good for me i need a code to add to my plugin but thx for try help me
g00gl3 is offline
nhnkl159
Senior Member
Join Date: Jul 2012
Location: Israel 3>
Old 02-14-2016 , 10:37   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #6

Code:
public OnClientPutInServer(client) 
{ 
    SDKHook(client, SDKHook_WeaponEquip, OnWeaponEquip) 
} 
public OnClientDisconnect(client) 
{ 
    if (IsClientInGame(client)) 
    { 
        SDKUnhook(client, SDKHook_WeaponEquip, OnWeaponEquip) 
    } 
} 
public Action:OnWeaponEquip(client, weapon) 
{ 
    decl String:Weapon[32]; 
    GetEdictClassname(weapon, Weapon, sizeof(Weapon)); 
     
    if(!StrEqual(Weapon, "weapon_knife")) 
    {
         return Plugin_Handled; 
    } 
    return Plugin_Continue; 
}
__________________

Last edited by nhnkl159; 02-14-2016 at 10:37.
nhnkl159 is offline
Send a message via Skype™ to nhnkl159
g00gl3
Member
Join Date: Feb 2016
Location: bulgaria
Old 02-14-2016 , 10:44   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #7

Quote:
Originally Posted by nhnkl159 View Post
Code:
public OnClientPutInServer(client) 
{ 
    SDKHook(client, SDKHook_WeaponEquip, OnWeaponEquip) 
} 
public OnClientDisconnect(client) 
{ 
    if (IsClientInGame(client)) 
    { 
        SDKUnhook(client, SDKHook_WeaponEquip, OnWeaponEquip) 
    } 
} 
public Action:OnWeaponEquip(client, weapon) 
{ 
    decl String:Weapon[32]; 
    GetEdictClassname(weapon, Weapon, sizeof(Weapon)); 
     
    if(!StrEqual(Weapon, "weapon_knife")) 
    {
         return Plugin_Handled; 
    } 
    return Plugin_Continue; 
}
thank you
g00gl3 is offline
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 02-14-2016 , 23:21   Re: [CS:GO Knife Server] allowing only knife
Reply With Quote #8

Actually you don't even need a plugin for this...

mp_roundtime_defuse 60
mp_ct_default_secondary ""
mp_t_default_secondary ""
mp_startmoney 0
mp_give_player_c4 0
mp_free_armor 1

nuff else to say.
__________________
If you need any help, feel free to add me on Steam.


Triniayo is offline
Send a message via Skype™ to Triniayo
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:18.


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