AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Cvar Change Message in Colors (https://forums.alliedmods.net/showthread.php?t=310604)

shehzad1234 09-15-2018 17:08

Re: [HELP] Cvar Change Message in Colors
 
oh my bad sorry its worked but how can i color this text please tell me ;-;

https://imgur.com/a/GMnDSQq

OciXCrom 09-15-2018 19:15

Re: [HELP] Cvar Change Message in Colors
 
The same way you colored the other part of it.

shehzad1234 09-16-2018 13:18

Re: [HELP] Cvar Change Message in Colors
 
but i cant find that line on code i really dont know where is that line in source code

OciXCrom 09-16-2018 13:22

Re: [HELP] Cvar Change Message in Colors
 
For the last time - YOU DON'T CHANGE ANYTHING IN THE SOURCE CODE.

shehzad1234 09-16-2018 13:42

Re: [HELP] Cvar Change Message in Colors
 
Quote:

Originally Posted by OciXCrom (Post 2615447)
For the last time - YOU DON'T CHANGE ANYTHING IN THE SOURCE CODE.

ohk bro sure but in txt where i can find ADMIN %s in txt file there is many ADMIN %s but for slap kick / ban didn't see for cvar

Code:

NO_MORE_CVARS = Can't add more cvars for rcon access!
UNKNOWN_CVAR = Unknown cvar: %s
CVAR_NO_ACC = You have no access to that cvar
CVAR_IS = Cvar "%s" is "%s"
PROTECTED = PROTECTED
SET_CVAR_TO = &x04%s &x03set cvar&x04 %s&x03 to &x01"&x04%s&x01"
CVAR_CHANGED = Cvar "%s" changed to "%s"
LOADED_PLUGINS = Currently loaded plugins


OciXCrom 09-16-2018 15:57

Re: [HELP] Cvar Change Message in Colors
 
You can open admincmd.sma and see which line is used in the amx_cvar command. It's SET_CVAR_TO.

shehzad1234 09-16-2018 16:20

Re: [HELP] Cvar Change Message in Colors
 
new g_addCvar[] = "amx_cvar add %s"
i see this now what i want to edit bro

tousif 09-17-2018 04:51

Re: [HELP] Cvar Change Message in Colors
 
Quote:

Originally Posted by shehzad1234 (Post 2615358)
oh my bad sorry its worked but how can i color this text please tell me ;-;

https://imgur.com/a/GMnDSQq

You need to edit common.txt language file.

This line:
Code:

ADMIN = ADMIN

shehzad1234 09-24-2018 18:30

Re: [HELP] Cvar Change Message in Colors
 
Quote:

Originally Posted by tousif (Post 2615518)
You need to edit common.txt language file.

This line:
Code:

ADMIN = ADMIN

oh thanks bro :D


All times are GMT -4. The time now is 21:18.

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