Raised This Month: $ Target: $400
 0% 

Simple plugin help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dongfatt
Member
Join Date: Aug 2005
Old 11-17-2006 , 16:56   Simple plugin help.
Reply With Quote #1

[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.

Last edited by dongfatt; 11-17-2006 at 16:59.
dongfatt is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode