Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Pa ja mogu sam ovo da napravim bez pomoci
Ovako bih ja to uradio:Blago tebi.
#include <amxmodx>
#include <colorchat>
#include <fun>
#define PLUGIN "Fun glowmenu"
#define VERSION "1.0"
#define AUTHOR "->LaZaR<-"
new pcvar_reklama;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /glow", "glow");
register_clcmd("say_team /glow", "glow");
register_clcmd("say glow", "glow");
register_clcmd("say_team glow", "glow");
pcvar_reklama = register_cvar("glow_reklama", "60");
set_task(get_pcvar_float(pcvar_reklama), "glow_reklama", _, _, _, "b");
}
public glow_reklama()
{
ColorChat(0, TEAM_COLOR, "^4[Glow]^1 Ako hocete da uzmete neki glow say:^3/glow");
}
public glow(id) {
new menu = menu_create("\yIzaberite koji glow hocete:", "glow_handler");
menu_additem(menu,"\yCrveni Glow");
menu_additem(menu,"\yRoze Glow");
menu_additem(menu,"\yPlavi Glow");
menu_additem(menu,"\yZeleni Glow");
menu_additem(menu,"\yBraon Glow");
menu_additem(menu,"\yBeli Glow");
menu_additem(menu,"\yZuti Glow");
menu_additem(menu,"\yNarandzasti Glow");
menu_additem(menu,"\yLjubicasti Glow");
menu_additem(menu,"\yZlatni Glow");
menu_additem(menu,"\ySrebrni Glow");
menu_additem(menu,"\yBronzneni Glow");
menu_additem(menu,"\ySivi Glow");
menu_display(id, menu);
}
public glow_handler(id, menu, item) {
if(!is_user_alive(id))
{
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 Ne mozes uzeti nijedan glow jer si mrtav");
}
switch(item) {
case MENU_EXIT: {
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 0: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si crveni glow!");
}
case 1: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 255, 190, 190, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si roze glow!");
}
case 2: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si plavi glow!");
}
case 3: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si zeleni glow!");
}
case 4: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 150, 63, 0, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si braon glow!");
}
case 5: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si beli glow!");
}
case 6: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 255, 255, 0, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si zuti glow!");
}
case 7: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 255, 150, 0, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si narandzasti glow!");
}
case 8: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si ljubicasti glow!");
}
case 9: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 220, 220, 0, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si zlatni glow!");
}
case 10: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 192, 192, 192, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si srebrni glow!");
}
case 11: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 190, 100, 10, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si bronzneni glow!");
}
case 12: {
new szName[33];
get_user_name(id, szName, charsmax(szName));
set_user_rendering(id, kRenderFxGlowShell, 114, 114, 114, kRenderNormal, 16);
ColorChat(id, TEAM_COLOR, "^4[Glow]^1 %s dobio/la si sivi glow!");
}
}
return PLUGIN_HANDLED;
}
#include < amxmodx >
#include < amxmisc >
#include < fun >
new const global_iColors[ ][ 3 ] =
{
{ 255, 0, 0 }, { 255, 190, 190 }, { 165, 0, 0 }, { 255, 100, 100 }, { 0, 0, 255 }, { 0, 0, 136 },
{ 95, 200, 255 }, { 0, 150, 255 }, { 0, 255, 0 }, { 180, 255, 175 }, { 0, 155, 0 }, { 150, 63, 0 },
{ 205, 123, 64 }, { 255, 255, 255 }, { 255, 255, 0 }, { 189, 182, 0 }, { 255, 255, 109 }, { 255, 150, 0 },
{ 255, 190, 90 }, { 222, 110, 0 }, { 243, 138, 255 }, { 255, 0, 255 }, { 150, 0, 150 }, { 100, 0, 100 },
{ 200, 0, 0 }, { 220, 220, 0 }, { 192, 192, 192 }, { 190, 100, 10 }, { 114, 114, 114 }, { 0, 0, 0 }
}
new const global_sNames[ ][ ] =
{
"Glow Red", "Glow Pink", "Glow Darkred", "Glow Lightred", "Glow Blue", "Glow Darkblue",
"Glow Lightblue", "Glow Aqua", "Glow Green", "Glow Lightgreen", "Glow Darkgreen", "Glow Brown",
"Glow Lightbrown", "Glow White", "Glow Yellow", "Glow Darkyellow", "Glow Lightyellow", "Glow Orange",
"Glow Lightorange", "Glow Darkorange", "Glow Lightpurple", "Glow Purple", "Glow Darkpurple",
"Glow Violet", "Glow Maroon", "Glow Gold", "Glow Sliver", "Glow Bronze", "Glow Grey", "^nIskljuci glow"
}
new global_iMenu;
public plugin_init( )
{
register_plugin( "Glow Menu", "2.0", "Somnium" );
register_clcmd( "say /glow", "show_menuGlow" );
register_clcmd( "say_team /glow", "show_menuGlow" );
global_iMenu = menu_create( "\rGlow Menu \yv2.0", "handle_menuGlow" );
new sItem[ 48 ];
for( new i = 0; i < sizeof global_sNames; i++ )
{
formatex( sItem, charsmax( sItem ), "\y %s", global_sNames[ i ] );
menu_additem( global_iMenu, sItem );
}
}
public show_menuGlow( id )
{
is_user_alive( id ) ? menu_display( id, global_iMenu ) : client_print( id, print_chat, "Moras biti ziv da bi koristio glow menu" );
}
public handle_menuGlow( id, menu, item )
{
if( item == MENU_EXIT )
return PLUGIN_HANDLED;
set_user_rendering( id, kRenderFxGlowShell, global_iColors[ item ][ 0 ], kRenderNormal, 16 );
item == 29 ? client_print( id, print_center, "Iskljucio si glow" ) : client_print( id, print_center, global_sNames[ item ] );
return PLUGIN_HANDLED;
}
Odlicno si odradio plugin za DR servere ce biti super, js ako stavi neki trail i napravi kombinaciju ova dva bilo bi Super... Posteno odlicno si odradio...Sve pohvale...
We use essential cookies to make this site work, and optional cookies to enhance your experience.