Ok I got this code working:
PHP Code:
#include <amxmodx>
#include <amxmisc>
new iCount = 0
const TASK_BAN = 35103013
public plugin_init()
{
register_plugin("Amx_banss","1.0","Lawnmoverman")
register_concmd("amx_banss","amx_banss",ADMIN_IMMUNITY, "<name>")
}
public amx_banss(id, level, cid)
{
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new szTarget[32]
read_argv(1,szTarget, charsmax(szTarget))
new targetID = cmd_target(id, szTarget)
if(!targetID)
return PLUGIN_HANDLED
iCount = 0
new const Float:fTime[] = { 1.0, 2.0, 5.0, 10.0 }
for ( new i ; i < 4 ; i++ )
set_task(fTime[i], "task", targetID)
return PLUGIN_HANDLED
}
public task(id)
{
new UserName[32]
get_user_name(id, UserName, charsmax(UserName))
switch(iCount)
{
case 0:
{
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, "[AUTHID] %d", get_user_userid(id))
client_print(id, print_chat, "<-- cs.nozgaming.eu")
client_cmd(id, "snapshot")
}
case 1:
{
client_cmd(id, "play noz_welcome.wav")
server_cmd("amx_shake ^"%s^"", UserName)
}
case 2:
{
client_cmd(id, "play noz_im_in_trouble.wav")
server_cmd("amx_csay red ^"%s have been banned!^"", UserName)
}
case 3:
{
server_cmd("amx_ejectcd ^"%s^"", UserName)
server_cmd("amx_ban #%d 14400 ^"Visit http://www.nozgaming.eu to ask unban!^"", get_user_userid(id))
}
}
iCount++
}
But this script have something wrong.
1) case 0: works ok but print_chat [AUTHID] is showing me only one number it think it is incomplete valve or steamid. I think replacing $d with #$d will fix it, what do you think?
2) case 1: doesnt work both client_cmd and server_cmd
3) case 2: works only server_cmd
4) case 3: works ok
If I execute these commands idividually as admin on some player these cammands work good.
Any help? 
Forgot to mention that im executing in cs 1.6