Raised This Month: $ Target: $400
 0% 

[CSGO] Remove: game_player_equip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-18-2014 , 11:49   [CSGO] Remove: game_player_equip
Reply With Quote #1

Hi i have probleme.. When i have this on server then map won't start
PHP Code:
public OnEntityCreated(entity, const String:classname[])
{
    if(
StrEqual(classname"game_player_equip"))
    {
        
AcceptEntityInput(entity"Kill");
    } 
PHP Code:
PlayerModelInfomissing terrorist models for map surf_lore_eAdding the default model tm_phoenix.
PlayerModelInfomissing counter-terrorist models for map surf_lore_eAdding the default model ctm_st6.
Couldn't find any entities named awpgun, which point_template awptemp is specifying.
Connection is closed... 
And i want remove just game_player_equip cuz on some map u don't have anything

Last edited by ESK0; 05-18-2014 at 11:51.
ESK0 is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 05-18-2014 , 12:23   Re: [CSGO] Remove: game_player_equip
Reply With Quote #2

try: OnMapStart -> find your entity -> remove that entity

Last edited by KissLick; 05-18-2014 at 12:24.
KissLick is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-18-2014 , 14:08   Re: [CSGO] Remove: game_player_equip
Reply With Quote #3

Doesn't work Damn, aaaa i just wan't to remove that entity That's not so much
ESK0 is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 05-18-2014 , 14:52   Re: [CSGO] Remove: game_player_equip
Reply With Quote #4

You should remove it on round start, or hook for entity spawn and remove it there.

Your plugin crashes because OnEntityCreated, the entity isn't ready yet to accept input.
h3bus is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 05-18-2014 , 15:38   Re: [CSGO] Remove: game_player_equip
Reply With Quote #5

Do you use RemoveEdict ?
KissLick is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-18-2014 , 17:20   Re: [CSGO] Remove: game_player_equip
Reply With Quote #6

Its ok now
ESK0 is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 05-19-2014 , 08:04   Re: [CSGO] Remove: game_player_equip
Reply With Quote #7

Also if you don't want the map to have any influence on player's weapon you can also remove
Code:
env_entity_maker
game_player_equip
game_weapon_manager
player_weaponstrip
h3bus is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 05-19-2014 , 14:10   Re: [CSGO] Remove: game_player_equip
Reply With Quote #8

When i changed "game_player_equip" to "player_weaponstrip" i get the same error.. and other options doesn't works.

Could you give me some other source ?
ESK0 is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 05-19-2014 , 16:50   Re: [CSGO] Remove: game_player_equip
Reply With Quote #9

Try this
PHP Code:
public OnEntityCreated(entity, const String:classname[]) {

    if (
StrEqual(classname"game_player_equip")) {
        
CreateTimer(0.1Timer_Callbackentity);
    }
}

public 
Action:Timer_Callback(Handle:timerany:entity) {

    if (
IsValidEntity(entity)) {
       
AcceptEntityInput(entity"Kill");
       
//RemoveEdict(entity); // or this if first fails
    
}

xf117 is offline
Send a message via ICQ to xf117
Mainstaff
AlliedModders Donor
Join Date: May 2011
Old 05-19-2014 , 16:57   Re: [CSGO] Remove: game_player_equip
Reply With Quote #10

You should never kill an entity in OnEntityCreated. Better you hook SDKHook_Spawn / SDKHook_SpawnPost and then you kill the entity.
Mainstaff 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 04:05.


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