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

Solved [CSGO] weapon_knife_ghost dont work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 12-20-2018 , 23:57   [CSGO] weapon_knife_ghost dont work
Reply With Quote #1

hi guys!!
i used this code but dont work:
PHP Code:
GivePlayerItem(client"weapon_knife_ghost"); 
how i can used "weapon_knife_ghost" on server??
thank you

Last edited by Dr.Mohammad; 12-22-2018 at 05:35.
Dr.Mohammad is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-21-2018 , 08:18   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #2

Quote:
Originally Posted by Dr.Mohammad View Post
hi guys!!
i used this code but dont work:
PHP Code:
GivePlayerItem(client"weapon_knife_ghost"); 
how i can used "weapon_knife_ghost" on server??
thank you
PHP Code:
if(!strcmp(sName[7], "c4"false) || !strcmp(sName[7], "knife_t"false) || !strcmp(sName[7], "fists"false) || !strcmp(sName[7], "knife_ghost"false))
            {
                
// Create a weapon entity
                
weaponIndex CreateEntityByName(sName);

                
// Validate index
                
if(weaponIndex != INVALID_ENT_REFERENCE
                {
                    
// Spawn the entity 
                    
DispatchSpawn(weaponIndex);

                    
// Give weapon
                    
EquipPlayerWeapon(clientIndexweaponIndex);
                }
            } 
__________________

Last edited by gubka; 12-21-2018 at 08:19.
gubka is offline
Send a message via ICQ to gubka
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 12-21-2018 , 10:15   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #3

PHP Code:

public void OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
void Event_PlayerSpawn(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
    
int weapon GivePlayerItem(client"weapon_knife_ghost");  
    
EquipPlayerWeapon(clientweapon);

PHP Code:

    
"FollowCSGOServerGuidelines"    "no" 
__________________
Ilusion9 is offline
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 12-21-2018 , 11:26   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #4

Quote:
Originally Posted by Ilusion9 View Post
PHP Code:

public void OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
void Event_PlayerSpawn(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
    
int weapon GivePlayerItem(client"weapon_knife_ghost");  
    
EquipPlayerWeapon(clientweapon);

PHP Code:

    
"FollowCSGOServerGuidelines"    "no" 
gslt banned for this??
"FollowCSGOServerGuidelines" "yes"

Last edited by Dr.Mohammad; 12-21-2018 at 11:29.
Dr.Mohammad is offline
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 12-21-2018 , 15:44   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #5

Not
for 1. Valve stopped GSLT banning
for 2. this is not inventory item
__________________

Last edited by _GamerX; 12-21-2018 at 15:44.
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 12-21-2018 , 17:03   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #6

Quote:
Originally Posted by _GamerX View Post
Not
for 1. Valve stopped GSLT banning
for 2. this is not inventory item
for 1. Valve stopped GSLT banning

so can i used !ws, !glove, !knife ??
Dr.Mohammad is offline
Kamizun
AlliedModders Donor
Join Date: May 2015
Location: Portugal
Old 12-21-2018 , 17:15   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #7

Quote:
Originally Posted by _GamerX View Post
Not
for 1. Valve stopped GSLT banning
for 2. this is not inventory item
Honestly you shouldn't say that.
Valve is not going to check if its a inventory item or not, they would check the functions used to spawn the items.

Adding, i did test weapon_knife_ghost and it would throw a giant model to people that see it in 3rd person. The knife doesn't have a world model.
Anyways you should test it and give some feedback.
Kamizun is offline
arcticx2
Senior Member
Join Date: Nov 2011
Old 12-21-2018 , 18:19   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #8

Quote:
Originally Posted by Kamizun View Post
Honestly you shouldn't say that.
Valve is not going to check if its a inventory item or not, they would check the functions used to spawn the items.

Adding, i did test weapon_knife_ghost and it would throw a giant model to people that see it in 3rd person. The knife doesn't have a world model.
Anyways you should test it and give some feedback.
Exactly ! even tho its totally risky and NOT EVEN recommended to risk using it because no one know what will happen next to the servers who not following their rules in the future
arcticx2 is offline
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 12-22-2018 , 05:36   Re: [CSGO] weapon_knife_ghost dont work
Reply With Quote #9

thank you guys.
Dr.Mohammad 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 03:44.


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