Already tried this and the server crashed
Any ideas? its posible?
PHP Code:
public Action:Command_spawnhint7(client, args)
{
new Float:playerpos[3];
GetEntPropVector(client, Prop_Send, "m_vecOrigin", playerpos);
new entindex = CreateEntityByName("func_physbox");
if (entindex != -1) //dispatch ent properites
{
// DispatchKeyValue(entindex, "affectsFlow", "1");
DispatchKeyValue(entindex, "spawnflags", "64");
}
DispatchSpawn(entindex);
ActivateEntity(entindex);
TeleportEntity(entindex, playerpos, NULL_VECTOR, NULL_VECTOR);
// PrecacheModel("models/player/items/pyro/drg_pyro_fueltank.mdl");
// SetEntityModel(entindex, "models/player/items/pyro/drg_pyro_fueltank.mdl");
new Float:minbounds[3] = {-100.0, -100.0, 0.0};
new Float:maxbounds[3] = {100.0, 100.0, 200.0};
SetEntPropVector(entindex, Prop_Send, "m_vecMins", minbounds);
SetEntPropVector(entindex, Prop_Send, "m_vecMaxs", maxbounds);
SetEntProp(entindex, Prop_Send, "m_nSolidType", 2);
new enteffects = GetEntProp(entindex, Prop_Send, "m_fEffects");
enteffects |= 32;
SetEntProp(entindex, Prop_Send, "m_fEffects", enteffects);
PrintToChatAll("Created the func_physbox");
return Plugin_Handled;
}
__________________