Raised This Month: $ Target: $400
 0% 

Muzzleflash is not work.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
krisztian2
Junior Member
Join Date: Feb 2019
Old 12-25-2021 , 20:45   Muzzleflash is not work.
Reply With Quote #1

Dear Scripters!

I have a special problem.

My problem is that, on my local server(windows) this plugin was worked perfectly, but I want to use this plugin on other Counter-Strike 1.6 server(linux server) and this not work.
What is the problem?
In plugin_init:
Code:
register_forward(FM_AddToFullPack, "CPlayer__AddToFullPack_post", 1);
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_ak47", "weapon__PrimaryAttack_Post", 1);
g_iEntity = create_entity("info_target");

public CPlayer__AddToFullPack_post(esState, iE, iEnt, iHost, iHostFlags, iPlayer, pSet)
{
    if (iEnt != g_iEntity) //This if statement is the problem with Entity.
        return;
.
.
.
.
}
public weapon__PrimaryAttack_Post(iEntity)
{
    new iPlayerID = get_pdata_cbase(iEntity, 41, 4);

    if(get_user_weapon_muzzle(iPlayerID) == true && !cs_get_weapon_silen(iEntity)){
    set_bit(g_bitsMuzzleFlash, iPlayerID);
	}
	else{
	return;
	}
}
Sry for my bad english.
krisztian2 is offline
 



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 11:44.


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