Help Limit Extra ZP
Hello, I would like to receive the help of someone who knows how to set extra item limits for ZP!
|
Re: Help Limit Extra ZP
Hi, you can do the following:
1. Make a global for limit for player: new g_iLimit[33]; 2. Set g_iLimit[id] to 0 on client_disconnected & client_putinserver. 3. Now, when on selection case put g_iLimit[id]++ it will add +1 to limit for example if its for limit 1 4. Before selection case make a check like if(g_iLimit[id] == 1) { client_print(id,print_chat, "Oops seems like you've hit the limit!") return PLUGIN_HANDLED ; } 5. Done. An example is given here. Code:
/* Plugin generated by AMXX-Studio */ |
All times are GMT -4. The time now is 17:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.