AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Request simple vote plugin (https://forums.alliedmods.net/showthread.php?t=342651)

Ali0mer 05-02-2023 15:11

Request simple vote plugin
 
Hello,
Im looking for a simple plugin that only uses amx_vote, without votemap of whatever..etc.. just amx_vote

Do not tell me to use default adminvote bcz i already have a custom votmap
But i just need this plugin

Amx_vote “word#1” “word#2)

Thank you :D

fysiks 05-03-2023 00:23

Re: Request simple vote plugin
 
1 Attachment(s)
So, you want amx_vote but in its own plugin and with a different name? If so, what name?

Here is the plugin with just the vote command but renamed to amx_vote2:

Ali0mer 05-03-2023 04:13

Re: Request simple vote plugin
 
Quote:

Originally Posted by fysiks (Post 2803836)
So, you want amx_vote but in its own plugin and with a different name? If so, what name?

Here is the plugin with just the vote command but renamed to amx_vote2:

Thank you for reply fysiks,
I just wanted the command amx_vote i need it to to just vote for somethings without votemap and other things
I will try your code and let you know
Its okay if its just amx_vote and not amx_vote2


EDIT:

I Got These errors while compile
Code:

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// amx_vote2.sma
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(59) : error 017: undefined symbol "MAX_NAME_LENGTH"
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(61) : error 009: invalid array size (negative or zero)
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : error 017: undefined symbol "name"
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : error 072: "sizeof" operator is invalid on "function" symbols
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : error 029: invalid expression, assumed zero
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 6 Errors.
// Could not locate output file E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\compiled\amx_vote2.amx (compile failed).
//
// Compilation Time: 0.09 sec


mlibre 05-03-2023 13:17

Re: Request simple vote plugin
 
amx_vote

fysiks 05-03-2023 23:49

Re: Request simple vote plugin
 
1 Attachment(s)
Quote:

Originally Posted by Ali0mer (Post 2803847)
Thank you for reply fysiks,
I just wanted the command amx_vote i need it to to just vote for somethings without votemap and other things
I will try your code and let you know
Its okay if its just amx_vote and not amx_vote2


EDIT:

I Got These errors while compile
Code:

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// amx_vote2.sma
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(59) : error 017: undefined symbol "MAX_NAME_LENGTH"
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(61) : error 009: invalid array size (negative or zero)
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : error 017: undefined symbol "name"
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : error 072: "sizeof" operator is invalid on "function" symbols
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : error 029: invalid expression, assumed zero
// E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\amx_vote2.sma(62) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 6 Errors.
// Could not locate output file E:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\compiled\amx_vote2.amx (compile failed).
//
// Compilation Time: 0.09 sec


Are you using AMX Mod X 1.8.2? Here is the 1.8.2-based version. I also kept the original name of "amx_vote" in this one.


Quote:

Originally Posted by mlibre (Post 2803866)

It's not as simple as a single function.

Ali0mer 05-04-2023 14:48

Re: Request simple vote plugin
 
Quote:

Originally Posted by fysiks (Post 2803878)
Are you using AMX Mod X 1.8.2? Here is the 1.8.2-based version. I also kept the original name of "amx_vote" in this one.




It's not as simple as a single function.

Thankx man its working !

Just one more question.. Can i add color to chat using lang adminvote.txt? If so, How ?

mlibre 05-04-2023 18:19

Re: Request simple vote plugin
 
sure but in 182 you have to use a stock like this

Ali0mer 05-04-2023 18:23

Re: Request simple vote plugin
 
Quote:

Originally Posted by mlibre (Post 2803913)
sure but in 182 you have to use a stock like this

Thankx i will try it and let you know

EDIT*

I tried it and i add #include chatcolor
but when i type !g in adminvote.txt its not showing color

fysiks 05-04-2023 23:54

Re: Request simple vote plugin
 
It's not as simple as just adding the include to the plugin. You have to change the code in every location that you want the functionality to work. I don't play a game that supports color chat so I don't have much experience with it so someone else will likely need to show you if you can't figure it out.

Ali0mer 05-05-2023 03:11

Re: Request simple vote plugin
 
Quote:

Originally Posted by fysiks (Post 2803926)
It's not as simple as just adding the include to the plugin. You have to change the code in every location that you want the functionality to work. I don't play a game that supports color chat so I don't have much experience with it so someone else will likely need to show you if you can't figure it out.

Alright, i think i figure it out , i just saw some examples on how to do it,
Thank you again!


All times are GMT -4. The time now is 01:04.

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