AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admincmd.sma to have reason (https://forums.alliedmods.net/showthread.php?t=55411)

Maniak 05-21-2007 09:15

Admincmd.sma to have reason
 
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.

scrtxxcaz 05-22-2007 00:19

Re: Admincmd.sma to have reason
 
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)
}


Maniak 05-22-2007 01:06

Re: Admincmd.sma to have reason
 
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

scrtxxcaz 05-23-2007 23:58

Re: Admincmd.sma to have reason
 
1 Attachment(s)
it was a little error...here try this

SweatyBanana 05-26-2007 17:02

Re: Admincmd.sma to have reason
 
http://forums.alliedmods.net/showpos...47&postcount=1


All times are GMT -4. The time now is 10:41.

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