AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   More for losers isnt working...HELP? (https://forums.alliedmods.net/showthread.php?t=29092)

SweatyBanana 05-29-2006 10:18

More for losers isnt working...HELP?
 
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 }

VEN 05-29-2006 11:17

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


All times are GMT -4. The time now is 16:21.

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