Raised This Month: $51 Target: $400
 12% 

Freeze Terrorist


Post New Thread Reply   
 
Thread Tools Display Modes
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 10-12-2015 , 09:36   Re: Freeze Terrorist
Reply With Quote #11

i trying this and dont working
PHP Code:
new UserMsg:g_FadeUserMsgId;

PerformBlind(clienttargetamount)
{
    new 
targets[2];
    
targets[0] = target;
    
    new 
duration 1536;
    new 
holdtime 1536;
    new 
flags;
    if (
amount == 0)
    {
        
flags = (0x0001 0x0010);
    }
    else
    {
        
flags = (0x0002 0x0008);
    }
    
    new 
color[4] = { 000};
    
color[3] = amount;
    
    
Handle message StartMessageEx(g_FadeUserMsgIdtargets1);
    if (
GetUserMessageType() == UM_Protobuf)
    {
        
Protobuf pb UserMessageToProtobuf(message);
        
pb.SetInt("duration"duration);
        
pb.SetInt("hold_time"holdtime);
        
pb.SetInt("flags"flags);
        
pb.SetColor("clr"color);
    }
    else
    {
        
BfWrite bf UserMessageToBfWrite(message);
        
bf.WriteShort(duration);
        
bf.WriteShort(holdtime);
        
bf.WriteShort(flags);        
        
bf.WriteByte(color[0]);
        
bf.WriteByte(color[1]);
        
bf.WriteByte(color[2]);
        
bf.WriteByte(color[3]);
    }
    
    
EndMessage();

    
LogAction(clienttarget"\"%L\" set blind on \"%L\", amount %d."clienttargetamount);

in command
PHP Code:
new target i;
new 
amount 255;
PerformBlind(clienttargetamount); 
Kubad is offline
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 10-12-2015 , 11:08   Re: Freeze Terrorist
Reply With Quote #12

okay i try this and work

PHP Code:
ServerCommand("sm_blind %s 255"i); 
Kubad 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 09:59.


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