Help about showing current ammo packs
hey guys, finally i decided to learn pawn language
anyway i need your help to do something First im trying to make a plugin for zombie plague that shows the current ammo packs look here what i did in this code Code:
/* Plugin generated by AMXX-Studio */ Can you tell me how to show the current ammo packs? just a example code so i could learn Thank you EDIT: I think i solved it By doing this Code:
/* Plugin generated by AMXX-Studio */ |
Re: Scripting Help
Yeah, that's why the zombieplague library exists.
Just to note, you don't need the is_user_connected check in mypackshow, a player can't write the command if he isn't in the server anyway. |
Re: Scripting Help
Quote:
Im still new to this and thank you again! |
Re: Scripting Help
As VeCo said, there's no need for that check. Instead it would be better to check if player is alive, since players can't have ammo once they're dead, same goes for zp right?
|
Re: Scripting Help
Quote:
So it depends on author if he wants to enable the cmd on alive or dead |
Re: Scripting Help
Quote:
What I would advice you is to use a proper title for your thread. Posting a thread named "Scripting Help" in the section "Scripting Help" is pretty much useless. The title needs to describe the thread as much as possible. You don't need <amxmisc> in the code. The "Ammo" variable is not needed either if you're going to use it only once. You can use the "zp_get_user_ammo_packs" function directly in "client_print". You can use "return PLUGIN_HANDLED" in the end of the function if you want to hide the "/mypacks" command from showing in chat. |
All times are GMT -4. The time now is 09:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.