Voting/Weapon drop help
Hey guys i thought i would try to learn amxx programming and have set a project for my self, The plugin allows a user/admin to call for a vote which requires 90% of people to vote yes other wise it fails
if the vote is yes, it strips all the weapons off the players and destoys the weapons, as well as prevents the users from buying weapons again if the vote is not 90% yes then it cancles out and waits 5 mins before the vote can go again PS. Try not to give the code away but if you can give me snippets or something to read on how i would write this, i have already read the basic guide on amxx help |
Look at one of the plugins that can do voting.
strip_user_weapons() [ in Fun ] will probably also be your friend. |
thanks so much now i have somewhere to look but still need some help with the voting, is there a help file for it like there was for the fun module
|
Just hit Search and then look for "voting" and other variants of it. You'll find tons of plugins that allow you to vote.
You can also open up adminvote.sma, which comes with AMXX. |
hey man thanks heaps for all the help, its night time here but ill continue work tommorow
PS. i tried to add karma to you but for some reason i cant :S |
Np, if you need any help feel free to PM me, or post back here.
Also you need 10 posts (although I haven't check how many posts you have) to be able to effect karma. |
Hey well i just thought i would make a simple strip weapon plugin first and add to it later
my code works in the compiler with a few warnings but i cant test it so can someone tell me if it works Code:
//This makes it so you can use the core AMX Mod X functions |
Slightly optimized :wink:
Code:
EDIT: If you want to see a complete knife plugin, although I'm not sure if it works, you can go here: http://forums.alliedmods.net/showthread.php?t=20059 |
thanks for optimizing it, now i was wondering when the weapons drop do they disappear? and what module should i look through to disable the buy zone for the round
|
strip_user_weapons simply removes their weapons, it doesn't make them drop it, and it isn't exploitable.
You should really just catch CurWeapon rather than EDIT: checking buyzones. read the link I gave you: http://forums.alliedmods.net/showthread.php?t=20059 |
| All times are GMT -4. The time now is 23:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.