View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-11-2019 , 18:15   Re: Scripting Help
Reply With Quote #6

Quote:
Originally Posted by thEsp View Post
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?
It's ammo packs, not ammo. They work like money in ZP, so people CAN have them while dead. There's no need for that check.

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.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom