Raised This Month: $51 Target: $400
 12% 

[HELP] Problem with my plugin


Post New Thread Reply   
 
Thread Tools Display Modes
VarmaRitik
Senior Member
Join Date: Jul 2014
Location: India
Old 02-06-2015 , 02:40   Re: [HELP] Problem with my plugin
Reply With Quote #11

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Worst Score Reset"
#define VERSION "1.0"
#define AUTHOR "Striker"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_event("Ham_Spawn", "worst_score", "be")
    register_cvar("death_limit", "5")
    register_cvar("frags_limit", "0")
}

public worst_score (id) {
    if((get_user_deaths(id)) - (get_user_frags(id)) >= get_cvar_num("deaths_limit")) {
        set_user_frags(id, 0)
        cs_set_user_deaths(id, 0)
        
        client_print(id, print_chat, "Your score is worst therefore it has been Reset.")
    }
    
    return PLUGIN_HANDLED
}
Thank You.

Last edited by VarmaRitik; 02-06-2015 at 02:42.
VarmaRitik is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 02-06-2015 , 04:48   Re: [HELP] Problem with my plugin
Reply With Quote #12

Add this
PHP Code:
#include <fun> 
btw you have to learn basic things here the link of tutorial https://forums.alliedmods.net/forumdisplay.php?f=83
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 02-06-2015 at 04:49.
indraraj striker is offline
VarmaRitik
Senior Member
Join Date: Jul 2014
Location: India
Old 02-06-2015 , 05:30   Re: [HELP] Problem with my plugin
Reply With Quote #13

Ok..I will and Thank You.

Thank You.
VarmaRitik is offline
Reply



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:39.


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