Hi guys excuse me for my noob questions, but Im still learning.
So I have this code:
Code:
// (c)Lawnmoverman - nozgaming.eu
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Amx_banss","1.0","Lawnmoverman")
register_concmd("amx_banss","amx_banss",ADMIN_IMMUNITY)
}
public amx_banss(id) {
if (!(get_user_flags(id)&ADMIN_LEVEL_A)) {
console_print(id,"[AMXX] You do not have access to this command.")
return PLUGIN_HANDLED
}
new temp[32]
read_argv(1,temp,31)
new hacker_id = cmd_target(id, temp)
if(!hacker_id) {
return PLUGIN_HANDLED
}
new steamid[32]
read_argv(1,steamid,31)
new steam_id = get_user_authid(id,steamid,charsmax(steamid))
if(!steam_id){
return PLUGIN_HANDLED
}
set_task(5.0, "task0", hacker_id)
set_task(5.1, "task1", hacker_id)
set_task(6.0, "task2", hacker_id)
set_task(7.0, "task3", hacker_id)
set_task(8.0, "task4", hacker_id)
set_task(10.0, "task5", hacker_id)
set_task(11.0, "task6", hacker_id)
set_task(13.0, "task7", hacker_id)
return PLUGIN_HANDLED
}
public task1(id) {
client_cmd(id, "snapshot;")
}
public task2(id) {
client_cmd(id, "snapshot;")
}
public task3(id) {
client_cmd(id, "play noz_welcome.wav;")
}
public task4(id) {
server_cmd("amx_shake %s", hacker_id)
}
public task5(id) {
client_cmd(id, "play noz_im_in_trouble.wav;")
server_cmd("amx_csay red %s have been banned!", hacker_id)
}
public task6(id) {
server_cmd("amx_ejectcd %s", hacker_id)
}
public task7(id) {
server_cmd("amx_ban %s 14400 http://www.nozgaming.eu/unban.html", steam_id)
}
public task0(id) {
client_print(id, print_chat, "cs.nozgaming.eu -->")
client_print(id, print_chat, "[BANSS] You are being owned!")
client_print(id, print_chat, "[BANSS] Visit http://www.nozgaming.eu, to ask unban!")
client_print(id, print_chat, "[NAME] $s [AUTHID] $s", hacker_id, steam_id)
client_print(id, print_chat, "<-- cs.nozgaming.eu")
}
And I cant get it to work. Compiler says:
Code:
.sma(56) error 017 undefined symbol "hacker_id"
.sma(61) error 017 undefined symbol "hacker_id"
.sma(65) error 017 undefined symbol "hacker_id"
.sma(69) error 017 undefined symbol "steam_id"
.sma(76) error 017 undefined symbol "hacker_id"
.sma(76) error 017 undefined symbol "steam_id"
Someone please help me to get this working. Sorry but Im stuck!