Raised This Month: $ Target: $400
 0% 

Admincmd.sma to have reason


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maniak
Junior Member
Join Date: May 2007
Old 05-21-2007 , 09:15   Admincmd.sma to have reason
Reply With Quote #1

I need to change admincmd.sma to have the reason on the hud in-game when banning. Anyone knows what and where to write:
Admin Maniak: Ban player for 10 minutes. Reason : lol or smth.
Maniak is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 05-22-2007 , 00:19   Re: Admincmd.sma to have reason
Reply With Quote #2

try adding this code into ur admincmd.sma file under: public cmdBan at the very bottem under: console_print(id, "[AMXX] %L", id, "CLIENT_BANNED", name2)

Code:
new players[32],pnum
get_players(players,pnum)
for(new i = 0;1 < pnum; i ++)
{
          set_hudmessage(255, 0, 0, 0.3.0, 0.23, 0, 6.0, 12.0)
          show_hudmessage(players[i], "Admin %s: Ban player for %s minutes. Reason: %s",name,minutes,reason)
}
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Maniak
Junior Member
Join Date: May 2007
Old 05-22-2007 , 01:06   Re: Admincmd.sma to have reason
Reply With Quote #3

Not working, compiler can't compile that modified file. I am not genius at scripting, maybe you can modify that .sma for me, if you can and share somewhere
Maniak is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 05-23-2007 , 23:58   Re: Admincmd.sma to have reason
Reply With Quote #4

it was a little error...here try this
Attached Files
File Type: sma Get Plugin or Get Source (admincmd.sma - 749 views - 25.0 KB)
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-26-2007 , 17:02   Re: Admincmd.sma to have reason
Reply With Quote #5

http://forums.alliedmods.net/showpos...47&postcount=1
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Reply



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 10:41.


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