Raised This Month: $ Target: $400
 0% 

More for losers isnt working...HELP?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-29-2006 , 10:18   More for losers isnt working...HELP?
Reply With Quote #1

Hey guys...this plugin is suposed to give the losing team 1400 more dollars for winning.


Code:
/************************************** *      MFL.SMA (More For Losers)      * *                                     * *     Gives players on the losing     * *          team $1,400 more.          * *                                     * **************************************/ #include <amxmodx> #include <cstrike> #define PLUGIN "MoreForLosers" #define VERSION "1.0" #define AUTHOR "SweatyBanana" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("CT_Win","Check_CT","a");     register_event("Terrorists_Win","Check_T","a"); } public Check_CT(id) {     if(CsTeams:cs_get_user_team(id) == CS_TEAM_T)     {         cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)     }     return PLUGIN_HANDLED } public Check_T(id) {     if(CsTeams:cs_get_user_team(id) == CS_TEAM_CT)     {         cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)     }     return PLUGIN_HANDLED }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
VEN
Veteran Member
Join Date: Jan 2005
Old 05-29-2006 , 11:17  
Reply With Quote #2

There are no such events. Seems like you trying to catch logevent, use register_logevent.
Also do not try to use player index, it's not passed to that function, use loop and perform action on all team players.
Also CTs_Win
VEN 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 16:21.


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