Raised This Month: $ Target: $400
 0% 

Request simple vote plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 05-02-2023 , 15:11   Request simple vote plugin
Reply With Quote #1

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
Ali0mer is offline
Send a message via Skype™ to Ali0mer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-03-2023 , 00:23   Re: Request simple vote plugin
Reply With Quote #2

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:
Attached Files
File Type: sma Get Plugin or Get Source (amx_vote2.sma - 108 views - 15.2 KB)
__________________

Last edited by fysiks; 05-03-2023 at 01:16.
fysiks is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 05-03-2023 , 04:13   Re: Request simple vote plugin
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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

Last edited by Ali0mer; 05-03-2023 at 15:34.
Ali0mer is offline
Send a message via Skype™ to Ali0mer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-03-2023 , 23:49   Re: Request simple vote plugin
Reply With Quote #5

Quote:
Originally Posted by Ali0mer View Post
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 View Post
It's not as simple as a single function.
Attached Files
File Type: sma Get Plugin or Get Source (amx_vote.sma - 72 views - 15.6 KB)
__________________
fysiks is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 05-04-2023 , 14:48   Re: Request simple vote plugin
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
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 ?

Last edited by Ali0mer; 05-04-2023 at 14:50.
Ali0mer is offline
Send a message via Skype™ to Ali0mer
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 05-04-2023 , 18:19   Re: Request simple vote plugin
Reply With Quote #7

sure but in 182 you have to use a stock like this
__________________
mlibre is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 05-04-2023 , 18:23   Re: Request simple vote plugin
Reply With Quote #8

Quote:
Originally Posted by mlibre View Post
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

Last edited by Ali0mer; 05-04-2023 at 18:31.
Ali0mer is offline
Send a message via Skype™ to Ali0mer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2023 , 23:54   Re: Request simple vote plugin
Reply With Quote #9

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.
__________________
fysiks is offline
Ali0mer
Senior Member
Join Date: Jan 2016
Location: Iraq
Old 05-05-2023 , 03:11   Re: Request simple vote plugin
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
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!
Ali0mer is offline
Send a message via Skype™ to Ali0mer
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 04:50.


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