AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Explode effect in Force Round End (https://forums.alliedmods.net/showthread.php?t=58789)

Dark Killer 08-02-2007 08:52

Explode effect in Force Round End
 
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

Alka 08-02-2007 09:00

Re: Explode effect in Force Round End
 
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();
}


Dark Killer 08-02-2007 09:39

Re: Explode effect in Force Round End
 
Thank you very much Alka :D


All times are GMT -4. The time now is 11:23.

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