View Single Post
Lux
Veteran Member
Join Date: Jan 2015
Location: Brexit
Old 01-22-2018 , 21:22   Re: [L4D2] Car Alarm Informer V2.0
Reply With Quote #4

Why not do a director hint, like it shows you in l4d1

here is my stock for showing specific client a director hint.
You should use it in a forloop.

PHP Code:
DirectorHint(iClient, const Float:fHintTime=5.0, const String:sHintIcon[]="icon_alert", const String:sHintCaption[]="Print to me baby", const String:sHintColour[]="100 100 100")
{
    static 
iEntity;
    
iEntity CreateEntityByName("env_instructor_hint");
    if(
iEntity 1)
        return;
    
    static 
String:sValues[72];
    
FormatEx(sValuessizeof(sValues), "hint%d"iClient);
    
DispatchKeyValue(iClient"targetname"sValues);
    
DispatchKeyValue(iEntity"hint_target"sValues);
    
    
DispatchKeyValue(iEntity"hint_range""100");
    
DispatchKeyValue(iEntity"hint_icon_onscreen"sHintIcon);
    
    
FormatEx(sValuessizeof(sValues), "%f"fHintTime);
    
DispatchKeyValue(iEntity"hint_timeout"sValues);
    
    
FormatEx(sValuessizeof(sValues), "%s"sHintCaption);
    
DispatchKeyValue(iEntity"hint_caption"sValues);
    
DispatchKeyValue(iEntity"hint_color"sHintColour);
    
DispatchSpawn(iEntity);
    
AcceptEntityInput(iEntity"ShowHint"iClient);
    
    
FormatEx(sValuessizeof(sValues), "OnUser1 !self:Kill::%f:1"fHintTime);
    
SetVariantString(sValues);
    
AcceptEntityInput(iEntity"AddOutput");
    
AcceptEntityInput(iEntity"FireUser1");

__________________
Lux is offline