View Single Post
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 01-04-2014 , 15:47   Re: SendProxy Manager
Reply With Quote #246

Hi guys
Got question
How do i proxy string?

PHP Code:
#include <sendproxy>
#include <sdkhooks>
#include <sdktools>

public OnPluginStart()
{
    
HookEvent("teamplay_round_start"event_RoundStartEventHookMode_Post);
}

public 
OnMapStart()
{
    
PrecacheModel("models/props_2fort/frog.mdl")
}

public 
Action:event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
flag = -1;
    while ((
flag FindEntityByClassname(flag"item_teamflag")) != -1)
    {
        
SendProxy_Hook(flag"m_ModelName"Prop_StringCallback_FakeString)
    }
}

public 
Action:Callback_FakeString(entity, const String:PropName[], String:modifiedValue[4096], element)
{
    
Format(modifiedValuesizeof(modifiedValue), "models/props_2fort/frog.mdl")
    return 
Plugin_Changed;

Tried this but crashes server
Help would be userful
- Thanks
__________________
...

Last edited by Oshizu; 01-04-2014 at 16:54.
Oshizu is offline