View Single Post
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