Raised This Month: $ Target: $400
 0% 

using public death()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MichielM
Member
Join Date: Aug 2005
Old 09-01-2005 , 14:31   using public death()
Reply With Quote #1

ok this is what i need to know.. i got a script(part of economymod) that drops an amount of money when i say /drop ... (it creates a model on the orgin and someone can pick it up)

now i want also when someone dies, his cash drops to. i tried a few things but nothing seems to work.

i tought it would something like ?
Code:
public death() user_drop_money(id,amount)
this is where i must get the amount (wallet)
Code:
format(query,255,"SELECT wallet FROM money WHERE steamid='%s'",authid)
		dbi_query(dbc,query)
a part of the /drop code

Code:
if(equali(buffer1,"/drop"))
	{
		user_drop_money(id,str_to_num(buffer2))
		return PLUGIN_HANDLED
	}

can someone please help me
MichielM 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 14:21.


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