Raised This Month: $ Target: $400
 0% 

Explode effect in Force Round End


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 08-02-2007 , 08:52   Explode effect in Force Round End
Reply With Quote #1

Hi,
I want to make some explode effects (also sound using EMIT_SOUND) to the players when they are killed.

Force Round End plugin is here http://forums.alliedmods.net/showthread.php?t=56941

Thank you very much!

DK
__________________
Dark Killer is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-02-2007 , 09:00   Re: Explode effect in Force Round End
Reply With Quote #2

Here
Code:
//global
new explode;
 
//public precache
explode = precache_model("sprites/explode1.spr");
 
//in 'force_end' public in this loop "for(new i = 0; i < num; i++)"
if(pev_valid(x))
{
 new Float:origin[3];
 pev(x, pev_origin, origin);
 
 message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
 write_byte(3);
 write_coord(floatround(origin[0])); 
 write_coord(floatround(origin[1]));      
 write_coord(floatround(origin[2]));
 write_short(explode);
 write_byte(80);
 write_byte(10); 
 write_byte(0); 
 message_end();
}
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 08-02-2007 at 09:07.
Alka is offline
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 08-02-2007 , 09:39   Re: Explode effect in Force Round End
Reply With Quote #3

Thank you very much Alka
__________________
Dark Killer 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 01:23.


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