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_BROADCAST, SVC_TEMPENTITY, iOrigin);
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_BROADCAST, SVC_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_BROADCAST, SVC_TEMPENTITY, iOrigin);
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_BROADCAST, SVC_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_BROADCAST, SVC_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_PVS, SVC_TEMPENTITY, iOrigin2);
write_byte(9);
write_coord(iOrigin2[0]);
write_coord(iOrigin2[1]);
write_coord(iOrigin2[2]);
message_end();
//Smoke
message_begin(MSG_BROADCAST, SVC_TEMPENTITY, iOrigin2);
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();
}