Raised This Month: $ Target: $400
 0% 

glow problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cTn
Senior Member
Join Date: Oct 2005
Old 10-30-2005 , 11:16   glow problems
Reply With Quote #1

so can samoene translate french words to english? because i dont now french .. and the problem bumber2 add a menu i mean now if u write in chat /glow plugin write there are colors bla bla... and i need if i write /glow open menu with colors and just pres 1 2 3 or...
Attached Files
File Type: sma Get Plugin or Get Source (amx_glow.sma - 588 views - 11.2 KB)
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 11:20  
Reply With Quote #2

this should go in translation request..
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 11:27  
Reply With Quote #3

Code:
/* AMXMOD script. * * (c) Copyright 2000-2002, RAV * This file is provided as is (no warranties). * * say /glow or /glowhelp in game * * Required: ADMIN_LEVEL_A to use this command * * Changelog * * Version 1.1 - Initial Build * Version 1.2 - Case sensitivity ignored * Version 1.3 - Specific couleur added * Version 1.4 - Make invisible * Version 1.5 - amx_unglow command added * Version 1.6 - say /glowcolor commands added (by Gargantuel) * * Command amx_glow < part of name of the player > < couleur > or < random >  or < invisible > */ #include <amxmodx> #include <fun> public admin_glow_say(id,level){     if (!(get_user_flags(id)&level)){         console_print(id,"[AMX] You do not have access to this command.")         return PLUGIN_HANDLED     }     if (read_argc() < 2){             new sound_cvar = get_cvar_num("amx_glow_say")             console_print(id,"[AMX] ^"amx_glow_say^" on ^"%i^"",sound_cvar)             return PLUGIN_HANDLED     }     new sound_s[2]     read_argv(1,sound_s,2)     new sound = str_to_num(sound_s)     if(sound == 1) {         server_cmd("amx_glow_say 1")         console_print(id,"[AMX] The /glow commands are active for admins.")     }     else if(sound == 2) {         server_cmd("amx_glow_say 2")         console_print(id,"[AMX] The /glow commands are active for you.")     }     else if(sound == 0) {         server_cmd("amx_glow_say 0")         console_print(id,"[AMX] The /glow commands are off.")     }     return PLUGIN_HANDLED } public say_glow(id, colorred, colorgreen, colorblue, colorname[32]) {     new username[32]     // Only if glowing enabled     if(get_cvar_num("amx_glow_say") == 0) {         client_print(id, print_chat, "*** The /glow commands are off. ***")         return PLUGIN_CONTINUE     }     // Only Admin can use glow     if (!(get_user_flags(id)&ADMIN_LEVEL_A)&&(get_cvar_num("amx_glow_say") == 1)) {         client_print(id, print_chat, "*** The /glow commands are reserved for admins. ***")         return PLUGIN_CONTINUE     }     // Only if alive     if ((is_user_alive(id)==0)&&!(equal(colorname,"HELP")))    {         client_print(id,print_console,"*** You are dead, not possible. ***")         return PLUGIN_HANDLED     }     // do action     get_user_name(id,username,31)     if (equal(colorname,"OFF"))     {         set_user_rendering(id)         client_print(0,print_chat,"[AMX] ^"%s^" is now glowing",username)         set_hudmessage(id, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)         show_hudmessage(id,"Vous avez cesse de briller.")     } else {         if (equal(colorname,"HELP"))         {             client_print(id,print_chat,"[AMX] To glow, use these commands : /glowwhite, /glowred, /glowgreen, /glowyellow,")             client_print(id,print_chat,"  /glowblue, /glowmagenta, /glowpink, /glowrandom")             client_print(id,print_chat,"[AMX] To turn off glowing, use this : /glowoff")         } else {             set_user_rendering(id, kRenderFxGlowShell, colorred, colorgreen, colorblue, kRenderNormal, 16)             client_print(0,print_chat,"[AMX] ^"%s^" set glowing on %s.",username, colorname)             set_hudmessage(id, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(id, "You begin to shine in %s !", colorname)         }     }     return PLUGIN_CONTINUE } public say_glow_off(id) {     say_glow(id, 0, 0, 0, "OFF")     return PLUGIN_CONTINUE } public say_glow_red(id) {     say_glow(id, 255, 0, 0, "RED")     return PLUGIN_CONTINUE } public say_glow_green(id) {     say_glow(id, 0, 255, 0, "GREEN")     return PLUGIN_CONTINUE } public say_glow_white(id) {     say_glow(id, 255, 255, 255, "WHITE")     return PLUGIN_CONTINUE } public say_glow_yellow(id) {     say_glow(id, 255, 255, 0, "YELLOW")     return PLUGIN_CONTINUE } public say_glow_blue(id) {     say_glow(id, 0, 0, 255, "BLUE")     return PLUGIN_CONTINUE } public say_glow_magenta(id) {     say_glow(id, 255, 0, 255, "MAGENTA")     return PLUGIN_CONTINUE } public say_glow_pink(id) {     say_glow(id, 240, 128, 128, "ROSE")     return PLUGIN_CONTINUE } public say_glow_random(id) {     new colorred = random_num(50,255)     new colorgreen = random_num(50,255)     new colorblue = random_num(50,255)     say_glow(id, colorred, colorgreen, colorblue, "random color")     return PLUGIN_CONTINUE } public say_glow_help(id) {     say_glow(id, 0, 0, 0, "HELP")     return PLUGIN_CONTINUE } public admin_glow(id) {     if (!(get_user_flags(id)&ADMIN_LEVEL_A)){         client_print(id,print_console,"[AMX] You have no access to that command.")         return PLUGIN_HANDLED     }     if (read_argc() <2) {         client_print(id,print_console," ")         client_print(id,print_console,"[AMX] Use:  amx_glow < part of name of the player  > < colors >")         client_print(id,print_console,"[AMX] Colors:  < red > < white > < green > < yellow > < blue >")         client_print(id,print_console,"[AMX] Colors:  < magenta > < pink > < random > < invisible >")         return PLUGIN_HANDLED     }         new username[32]     new color[33]     read_argv(1,username,32)     read_argv(2,color,32)     new toglow = find_player("bl",username)     if (toglow)     {         if (is_user_alive(toglow)==0)    {             client_print(id,print_console,"[AMX] The player ^"%s^" is dead.",username)             return PLUGIN_HANDLED         }         if(equal(color,"red")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,255,0,0,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" glows RED.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing RED.")             return PLUGIN_HANDLED         }         if(equal(color,"white")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,255,255,255,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is glowing WHITE.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing WHITE.")             return PLUGIN_HANDLED         }         if(equal(color,"green")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,0,255,0,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is glowing GREEN..",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing GREEN.")             return PLUGIN_HANDLED         }         if(equal(color,"yellow")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,255,255,0,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is glowing YELLWO..",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing YELLOW.")             return PLUGIN_HANDLED         }         if(equal(color,"blue")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,0,0,255,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is glowing BLUE.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing BLUE.")             return PLUGIN_HANDLED         }         if(equal(color,"magenta")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,255,0,255,kRenderNormal,16)             client_print(id,print_chat,"[AMX] Le joueur ^"%s^" brille en MAGENTA.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing MAGENTA!")             return PLUGIN_HANDLED         }         if(equal(color,"pink")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,240,128,128,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is glowing RED.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing RED!")             return PLUGIN_HANDLED         }         if(equal(color,"invisible")){             get_user_name(toglow, username , 32)             set_user_rendering(toglow,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is INVISIBLE.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is INVISIBLE!")             return PLUGIN_HANDLED         }         if(equal(color,"random")){             get_user_name(toglow, username , 32)             new colorred = random_num(50,255)             new colorgreen = random_num(50,255)             new colorblue = random_num(50,255)             set_user_rendering(toglow,kRenderFxGlowShell,colorred,colorgreen,colorblue,kRenderNormal,16)             client_print(id,print_chat,"[AMX] The player ^"%s^" is glowing random colors.",username)             set_hudmessage(toglow, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(toglow,"The admin is glowing random colors!")             return PLUGIN_HANDLED         }     } else {         client_print(id,print_console,"[AMX] Color not found.")         return PLUGIN_HANDLED     }         return PLUGIN_CONTINUE } public admin_unglow(id) {     if (!(get_user_flags(id)&ADMIN_LEVEL_A)){         client_print(id,print_console,"[AMX] You do not have access to that command.")         return PLUGIN_HANDLED     }     new username[32]     new color[33]     read_argv(1,username,32)     read_argv(2,color,32)     new tounglow = find_player("bl",username)     if (tounglow)     {         if (is_user_alive(tounglow)==0)         {             client_print(id,print_console,"[AMX] The player ^"%s^" is dead.",username)             return PLUGIN_HANDLED         } else {             get_user_name(tounglow, username , 32)             set_user_rendering(tounglow)             client_print(id,print_chat,"[AMX] The player ^"%s^" is no longer glowing.",username)             set_hudmessage(id, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)             show_hudmessage(tounglow,"The admin : is no longer glowing.")             return PLUGIN_HANDLED         }     }     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin("Admin glow","1.6","XLTEAM")     register_clcmd("say /glow", "say_glow_help" );     register_clcmd("say /glowhelp", "say_glow_help" );     register_clcmd("say /glowred", "say_glow_red" );     register_clcmd("say /glowwhite", "say_glow_white" );     register_clcmd("say /glowgreen", "say_glow_green" );     register_clcmd("say /glowyellow", "say_glow_yellow" );     register_clcmd("say /glowblue", "say_glow_blue" );     register_clcmd("say /glowmagenta", "say_glow_magenta" );     register_clcmd("say /glowpink", "say_glow_pink" );     register_clcmd("say /glowrandom", "say_glow_random" );     register_clcmd("say /glowoff", "say_glow_off" );     register_concmd("amx_glowsay","admin_glow_say",ADMIN_CVAR,"< 0/1/2 > - 0=disable, 1=admins only, 2=all")     register_concmd("amx_glow","admin_glow",ADMIN_LEVEL_A,"< part of name of the player > < couleur >")     register_concmd("amx_glow","admin_glow",ADMIN_LEVEL_A,"Colors:  < red > < white > < green > < yellow > < blue >")       register_concmd("amx_glow","admin_glow",ADMIN_LEVEL_A,"Colors:  < magenta > < pink > < random > < invisible > < off >")       register_concmd("amx_unglow","admin_unglow",ADMIN_LEVEL_A,"amx_unglow < part of name of the player >")     register_cvar("RVS_adminglow", "1.5",FCVAR_SERVER)     register_cvar("amx_glow_say", "1")     return PLUGIN_CONTINUE }

EDITED: Quick port, also this is not very good French, just based on what I know off the top of my head.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
broertje
Senior Member
Join Date: Mar 2005
Old 10-30-2005 , 11:29  
Reply With Quote #4

good job,my french is poor,i only translated 10 lines
broertje is offline
cTn
Senior Member
Join Date: Oct 2005
Old 10-30-2005 , 11:29  
Reply With Quote #5

hawk thank uuu ypur carma up
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
cTn
Senior Member
Join Date: Oct 2005
Old 10-30-2005 , 11:30  
Reply With Quote #6

i dont test it right now but u add the menu?
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 11:32  
Reply With Quote #7

Oh... I didn't make a menu, I know pretty much nothing about menus so you'll have to get someone else to do that.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
cTn
Senior Member
Join Date: Oct 2005
Old 10-30-2005 , 11:44  
Reply With Quote #8

so i must wait for now... because people playng on m server is "soo s****d" .... i will wait for menu,,,
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
cTn
Senior Member
Join Date: Oct 2005
Old 10-30-2005 , 14:01  
Reply With Quote #9

and what is translation for this?
Code:
Vous avez cesse de briller
Code:
Your not glowing in any color
btw no man can made a menu for this?
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 14:08  
Reply With Quote #10

It and the one sentence above it should be "You are no longer glowing"
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 23:37.


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