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

Solved For CT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 05-28-2020 , 12:47   For CT
Reply With Quote #1

Can anyone convert this plugin only for ct team?
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Death Sprite"
#define VERSION "1.0"
#define AUTHOR "DarkGL"

#define write_coord_f(%1) engfunc(EngFunc_WriteCoord,%1)

new const szSprite[] = "sprites/skull.spr"

new pSprite;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg""DeathMsg""a")
}

public 
plugin_precache(){
    
pSprite precache_model(szSprite)
}

public 
DeathMsg()
{   
    new 
vid read_data(2)
    new 
kid read_data(1)
    
    if(!
is_user_connected(vid) || vid == kid || !is_user_connected(kid))     return ;
    
    new 
Float:fOrigin[3];
    
pev(vid,pev_origin,fOrigin);
    
    
fOrigin[2] += 35.0;
    
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY )
    
write_byte(TE_SPRITE)
    
write_coord_f(fOrigin[0])
    
write_coord_f(fOrigin[1])
    
write_coord_f(fOrigin[2])
    
write_short(pSprite
    
write_byte(10
    
write_byte(255)
    
message_end()
    


Last edited by amirwolf; 05-28-2020 at 13:02.
amirwolf is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-28-2020 , 12:50   Re: For CT
Reply With Quote #2

PHP Code:
//Add to top
#include <cstrike>

//In DeathMsg, replace existing with
if(!is_user_connected(vid) || vid == kid || !is_user_connected(kid) || ( cs_get_user_teamvid ) != CS_TEAM_CT ) ) return ; 
__________________

Last edited by Bugsy; 05-28-2020 at 12:52.
Bugsy is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 05-28-2020 , 13:02   Re: For CT
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
PHP Code:
//Add to top
#include <cstrike>

//In DeathMsg, replace existing with
if(!is_user_connected(vid) || vid == kid || !is_user_connected(kid) || ( cs_get_user_teamvid ) != CS_TEAM_CT ) ) return ; 
thank you
Solved
amirwolf is offline
Reply


Thread Tools
Display Modes

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 01:15.


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