Raised This Month: $ Target: $400
 0% 

Help out for newbie


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lawnmoverman
Member
Join Date: Jan 2017
Old 01-27-2017 , 16:52   Help out for newbie
Reply With Quote #1

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!
Lawnmoverman 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 20:53.


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