Raised This Month: $32 Target: $400
 8% 

Ban System


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lo6idZe
Member
Join Date: May 2008
Old 10-29-2008 , 15:04   Ban System
Reply With Quote #1

I want to update my ban system but I have a problem. If I use HUD message like that it works ok:
Code:
 
new Create
Create = CreateHudSyncObj()
set_hudmessage(0, 255, 0, 0.05, 0.30, 2, 6.0, 10.0 , 0.1, 0.1, -1)
 
if (reason[0])
{
ShowSyncHudMsg(0,Create,"Player ^"%s^" has been banned ^"%s^"^nBy admin ^"%s^", reason: ^"%s^"",name2,temp,name,reason)
} else {
ShowSyncHudMsg(0,Create,"Player ^"%s^" has been banned ^"%s^"^nBy admin ^"%s^", without reason",name2,temp,name)
}
but if I add log_to_file , the HUD message disapears very quickly
if i put ColorChat instead of log_to_file , message diseapers quickly too

Code:
 
new Create
Create = CreateHudSyncObj()
set_hudmessage(0, 255, 0, 0.05, 0.30, 2, 6.0, 10.0 , 0.1, 0.1, -1)
 
if (reason[0])
{
ShowSyncHudMsg(0,Create,"Player ^"%s^" has been banned ^"%s^"^nBy admin ^"%s^", reason: ^"%s^"",name2,temp,name,reason)
log_to_file("bansystem.txt","Player ^"%s^" has been banned ^"%s^"^nBy admin ^"%s^", reason: ^"%s^"",name2,temp,name,reason)
} else {
ShowSyncHudMsg(0,Create,"Player ^"%s^" has been banned ^"%s^"^nBy admin ^"%s^", without reason",name2,temp,name)
log_to_file("bansystem.txt","Player ^"%s^" has been banned ^"%s^"^nBy admin ^"%s^", without reason",name2,temp,name)
}
So how can I use this without problem?

Last edited by Lo6idZe; 10-29-2008 at 15:06.
Lo6idZe is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-30-2008 , 16:48   Re: Ban System
Reply With Quote #2

Use formatex.
__________________

anakin_cstrike is offline
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 19:47.


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