Raised This Month: $ Target: $400
 0% 

amx_score Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 08-29-2004 , 22:08  
Reply With Quote #5

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> public plugin_init() {   register_plugin("AMX-Score","0.1","Rustynails")   register_clcmd("amx_score","do_score",ADMIN_BAN) } public do_score(id) {   new user[32], killsstring[4], deathstring[4], uid   read_argv(1,user,31)   read_argv(2,killsstring,3)   read_argv(3,deathstring,3)   uid = find_player("bhl",user)   new deaths=str_to_num(deathstring)   new kills=str_to_num(killsstring)   if (access(id,ADMIN_BAN))   {     if (deaths)     {       if (isdigit(kills))       {         if (isdigit(deaths))         {           if (uid)           {             set_user_frags(uid,kills)             cs_set_user_deaths(uid,deaths)             console_print(id,"Changed score.")           }           else           {             console_print(id,"No such user has been identified on this server.")           }         }         else         {           console_print(id,"The amount of deaths may only be in numbers.")         }       }       else       {         console_print(id,"The amount of kills may only be in numbers.")       }     }     else     {       console_print(id,"You did not supply enough information.")     }   }   else   {     console_print(id,"You do not have enough access to use this command.")   }   return PLUGIN_HANDLED }

this one works with 0.20
at compile 0 errors 0 warnings
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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 17:24.


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