Simple plugin help.
[code]
#include <amxmodx> #include <fun> new bool:fart[33] public plugin_init() { register_plugin(Sound, 1.00, Mike) register_clcmd("say /fart","Fart") } public plugin_precache() { precache_sound("fart.wav") } public client_connect(id) { fart[id]=false } public client_disconnect(id) { fart[id]=false } public fart(id) { if(!fart[id]) { client_print(id,print_chat,"You Have Just Farted." } else { fart[id]=false } return PLUGIN_HANDLED I do not know what else i have to do in order to make it so that every time a player dies it makes a fart sound, this plugin is for learning how to become a better coder. Thank in advance. |
Re: Simple plugin help.
please you small:
Code:
|
Re: Simple plugin help.
you need a death message to find out when the player dies then play the sound in the hooked message. you also dont need to do a client connect or disconenct. its not necesary. alot of un-needed code .:wink:
|
Re: Simple plugin help.
thanks for the reply but i need help with the whole plugin :( since i put alot of unnecessary stuff in there i don't know how to fix it.
|
Re: Simple plugin help.
thanks for your reply.
|
Re: Simple plugin help.
Code:
|
Re: Simple plugin help.
Code:
|
Re: Simple plugin help.
made it more readable + corrected an error on the end of the plugin
Code:
|
Re: Simple plugin help.
you added a last branch, and removed all my comment quotes?
|
Re: Simple plugin help.
better?
Code:
|
| All times are GMT -4. The time now is 06:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.