using public death()
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)Code:
format(query,255,"SELECT wallet FROM money WHERE steamid='%s'",authid)Code:
if(equali(buffer1,"/drop"))can someone please help me :? |
please someone respond not only read :? tnx
|
Death event
How to start your function when someone dies you can see here:
Code:
How you see, I left you to write user_drop_money function :) That function should also get wallet info from SQL database |
and you realy dont need the
Code:
If it is not registered already add this ( where it says MyFunc put the the function that corresponds with your code ) Code:
|
ok tnx for the respond.. the main problem is the function already exists (and is used by the /drop), and ofcouse want to use it insteadof copy it to a new function (to save bytes)
ok so if this is the function, how should i fix it? Code:
public user_drop_money(id,amount) |
you dont have to make a new function... Replace Myfunc with drop_user_money or w/e it is ;)
|
eehm u mean change it on this?>
Code:
register_clcmd( "say /drop", "Myfun", ADMIN_ALL, "Drops your wallet!" )let me say it on a diffrent way.. i want to set this function Code:
user_drop_money(id,amount) |
Quote:
Code:
|
ok, i'll try something like that.. but would u like to explain were "read_data(2) " stands for?
that should be related with wallet? |
Quote:
|
| All times are GMT -4. The time now is 14:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.