View Single Post
Kubad
Senior Member
Join Date: Sep 2015
Location: Czech Republic
Old 10-11-2015 , 17:04   Re: Freeze Terrorist
Reply With Quote #7

okay i need help with
PHP Code:
PerformBlind(client255); 
PHP Code:
PerformBlind(clientamount)
{
    new 
targets[2];
    
targets[0] = client;
    
    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();



Last edited by Kubad; 10-11-2015 at 18:04.
Kubad is offline