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

slay menu with these effects


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 07-30-2017 , 21:33   slay menu with these effects
Reply With Quote #1

hello, i need a slay menu (say /slay) only for admins with these effects,

the effects are from the super amx plugin
https://forums.alliedmods.net/showthread.php?t=19542

basicly, i want the slay of the super amx plugin on a menu, but not the rest of things there, thanks

PHP Code:
explode(iOrigin[3]) 
{
    
//Blast Circles
    
message_begin(MSG_BROADCASTSVC_TEMPENTITYiOrigin);
    
write_byte(21);
    
write_coord(iOrigin[0]);
    
write_coord(iOrigin[1]);
    
write_coord(iOrigin[2] + 16);
    
write_coord(iOrigin[0]);
    
write_coord(iOrigin[1]);
    
write_coord(iOrigin[2] + 1936);
    
write_short(g_iWhiteSpr);
    
write_byte(0); // startframe
    
write_byte(0); // framerate
    
write_byte(2); // life
    
write_byte(16); // width
    
write_byte(0); // noise
    
write_byte(188); // r
    
write_byte(220); // g
    
write_byte(255); // b
    
write_byte(255); //brightness
    
write_byte(0); // speed
    
message_end();

    
//Explosion2
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(12);
    
write_coord(iOrigin[0]);
    
write_coord(iOrigin[1]);
    
write_coord(iOrigin[2]);
    
write_byte(188); // byte (scale in 0.1's)
    
write_byte(10); // byte (framerate)
    
message_end();

    
//Smoke
    
message_begin(MSG_BROADCASTSVC_TEMPENTITYiOrigin);
    
write_byte(5);
    
write_coord(iOrigin[0]);
    
write_coord(iOrigin[1]);
    
write_coord(iOrigin[2]);
    
write_short(g_iSmokeSpr);
    
write_byte(2);
    
write_byte(10);
    
message_end();
}

blood(iOrigin[3]) 
{
    
//LAVASPLASH
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(10);
    
write_coord(iOrigin[0]);
    
write_coord(iOrigin[1]);
    
write_coord(iOrigin[2]);
    
message_end();
}

lightning (iOrigin[3],iOrigin2[3]) 
{
    
//Lightning
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(0);
    
write_coord(iOrigin[0]);
    
write_coord(iOrigin[1]);
    
write_coord(iOrigin[2]);
    
write_coord(iOrigin2[0]);
    
write_coord(iOrigin2[1]);
    
write_coord(iOrigin2[2]);
    
write_short(g_iLightSpr);
    
write_byte(1); // framestart
    
write_byte(5); // framerate
    
write_byte(2); // life
    
write_byte(20); // width
    
write_byte(30); // noise
    
write_byte(200); // r, g, b
    
write_byte(200); // r, g, b
    
write_byte(200); // r, g, b
    
write_byte(200); // brightness
    
write_byte(200); // speed
    
message_end();

    
//Sparks
    
message_begin(MSG_PVSSVC_TEMPENTITYiOrigin2);
    
write_byte(9);
    
write_coord(iOrigin2[0]);
    
write_coord(iOrigin2[1]);
    
write_coord(iOrigin2[2]);
    
message_end();

    
//Smoke
    
message_begin(MSG_BROADCASTSVC_TEMPENTITYiOrigin2);
    
write_byte(5);
    
write_coord(iOrigin2[0]);
    
write_coord(iOrigin2[1]);
    
write_coord(iOrigin2[2]);
    
write_short(g_iSmokeSpr);
    
write_byte(10);
    
write_byte(10);
    
message_end();


Last edited by Rivotril; 07-30-2017 at 21:33.
Rivotril 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 20:02.


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