Im making my first serious plugin and i have my first serious problem.
Thing that plugin should do is finding user id and using in function called every round to add $. Amount of $ will be diffrent for every user.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
new player_id = id
//How to add parameter here?
register_logevent("round_start()", 2, "1=Round_Start")
}
public round_start(player_id) {
client_print(player_id, print_chat, "[AMXX] NOWA RUNDA---------------------<<<")
cs_set_user_money(player_id, cs_get_user_money(player_id) + 6666)
client_print(player_id, print_chat, "[AMXX] CSN-SQL: Dodano 6666$")
}