Raised This Month: $ Target: $400
 0% 

Plugin Run Once and Stop(PLUGIN_) See 3rd post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
stax
New Member
Join Date: Jul 2005
Location: Canada, Quebec
Old 04-17-2006 , 02:19   Plugin Run Once and Stop(PLUGIN_) See 3rd post
Reply With Quote #1

Ok, this plugin is for my TSRP server and it delete 20 dollars when player die because the city need to bury his / her bones. But i still have a problem ! When the client die 1 time, each other die are not counted ! the plugis is....stopped I think...please help me, this is my 2nd plugin ! This is the script :
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "diesetcash" #define VERSION "1.0" #define AUTHOR "Stax" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     new username[18]     new id = get_user_userid(id)     get_user_name(id, username,17)     if(get_user_deaths(id) != 0)     {     if(is_user_alive(id))     {     log_amx("player %s is dead ! $20 is destroyed from his bank account !", username)     client_print(id,print_chat,"Oh dear ! You are dead and the city need to bury your bones ! $20 is gived to the city from your bank account !")     server_cmd("amx_additems %s 202 1", username)     server_cmd("amx_destroymoney %s 20", username)     return PLUGIN_HANDLED     } }     return PLUGIN_HANDLED   }
Okay...I got another problem ! It simply don't run on amxx v1.01 (Bad Load) And I Can't use amxx v1.7 because this version of amxx does not support HarbuRP.... Thanks in advance.
__________________

§Ŧ@X
stax is offline
 


Thread Tools
Display Modes

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 04:59.


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