I need this "trigger_push" follow the player who created it, "trigger_push" is created works but does not follow the player.
PHP Code:
public Action:Create(client, args)
{
new Float:playerpos[3];
GetEntPropVector(client, Prop_Send, "m_vecOrigin", playerpos);
entindex = CreateEntityByName("trigger_push");
if (entindex != -1)
{
DispatchKeyValue(entindex, "pushdir", "0 90 0");
DispatchKeyValue(entindex, "speed", "500");
DispatchKeyValue(entindex, "spawnflags", "64");
DispatchKeyValue(iEnt, "parentname", "client");
}
Thanks.
#EDIT
Sorry my topic was in SourceMod and posted here by mistake.
Thanks.
__________________
My Plugins |
VIEW HERE | I accept private requests, send me a PM.

Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet
CZSBrasil TEAM