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

Need Help my first plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
4nTi
Junior Member
Join Date: Feb 2018
Old 02-19-2018 , 06:43   Need Help my first plugin
Reply With Quote #1

Hi Guys am new in scripting i tried to create a plugin to Set custom score to any user in the game, and my plugin show a Bad Load in the game but its been compiled perfectly .

Here is my code :

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <dodx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("amx_setscore""cmdSetScore"ADMIN_BAN)
    
// Add your code here...
}

public 
cmdSetScore(user_indexuser_fragsuser_deaths){
    
//if (!cmd_access(index, user_frags, user_deaths, 2))
    //    return PLUGIN_HANDLED 
    
    //new user_name = get_user_name(user_index)
    
set_user_frags(user_indexuser_frags)
    
cs_set_user_deaths(user_indexuser_frags)
    
//console_print("[AMXX] %s Has score changed !", user_name)
    
    
return PLUGIN_HANDLED
    

4nTi is offline
 



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 23:28.


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