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(PLUGIN, VERSION, AUTHOR)
register_clcmd("amx_setscore", "cmdSetScore", ADMIN_BAN)
// Add your code here...
}
public cmdSetScore(user_index, user_frags, user_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_index, user_frags)
cs_set_user_deaths(user_index, user_frags)
//console_print("[AMXX] %s Has score changed !", user_name)
return PLUGIN_HANDLED
}