Quote:
Originally Posted by Y060N
I got the code for the field from a friend of mine, didn't know "lucas" created it.
|
Lol force field grenade?
Quote:
Originally Posted by Y060N
If you want to update it and use think and not the infamous infinite tasks you are known for, then go for it.
|
Nope i don't want to update it. And im known for infinite task and pre think where did you hear or seen that?
Quote:
Originally Posted by Y060N
And why do you never say thank you Red.zone instead of just asking for additions?
|
Im not useing it and not working with zp for now. How ever im telling you to add lucas in credits beacuse of this...
Your force field...
PHP Code:
public crear_ent(id)
{
new iEntity = create_entity("info_target")
if(!is_valid_ent(iEntity))
return PLUGIN_HANDLED
g_LastUseTime[id] = get_gametime()
print_chatColor(id, "\g[eQuilibriumCS.com] \nYou have to wait %f seconds to use this again.", get_pcvar_float(cvar_shield_cooldown))
new Float: Origin[3]
entity_get_vector(id, EV_VEC_origin, Origin)
entity_set_string(iEntity, EV_SZ_classname, entclas)
entity_set_vector(iEntity,EV_VEC_origin, Origin)
entity_set_model(iEntity,model)
entity_set_int(iEntity, EV_INT_solid, SOLID_TRIGGER)
entity_set_size(iEntity, Float: {-100.0, -100.0, -100.0}, Float: {100.0, 100.0, 100.0})
entity_set_int(iEntity, EV_INT_renderfx, kRenderFxGlowShell)
entity_set_int(iEntity, EV_INT_rendermode, kRenderTransAlpha)
entity_set_float(iEntity, EV_FL_renderamt, 50.0)
entity_set_vector(iEntity, EV_VEC_rendercolor, CampoColors)
set_task(get_pcvar_float(cvar_shield_length), "DeleteEntity", iEntity)
return PLUGIN_CONTINUE
}
This is his code.
PHP Code:
public crear_ent(id) {
_ClearBomb(id)
set_pcvar_num(_pcvar_flaregrenades,1)
// Create entitity
new iEntity = create_entity("info_target")
if(!is_valid_ent(iEntity))
return PLUGIN_HANDLED
new Float: Origin[3]
entity_get_vector(id, EV_VEC_origin, Origin)
entity_set_string(iEntity, EV_SZ_classname, entclas)
entity_set_vector(iEntity,EV_VEC_origin, Origin)
entity_set_model(iEntity,model)
entity_set_int(iEntity, EV_INT_solid, SOLID_TRIGGER)
entity_set_size(iEntity, Float: {-100.0, -100.0, -100.0}, Float: {100.0, 100.0, 100.0})
entity_set_int(iEntity, EV_INT_renderfx, kRenderFxGlowShell)
entity_set_int(iEntity, EV_INT_rendermode, kRenderTransAlpha)
entity_set_float(iEntity, EV_FL_renderamt, 50.0)
#if defined RANDOM_COLOR
if(is_valid_ent(iEntity))
{
new Float:vColor[3]
for(new i; i < 3; i++)
vColor[i] = random_float(0.0, 255.0)
entity_set_vector(iEntity, EV_VEC_rendercolor, vColor)
}
#endif
#if defined ONE_COLOR
entity_set_vector(iEntity, EV_VEC_rendercolor, CampoColors)
#endif
#if defined CAMPO_TASK
set_task(get_pcvar_float(_pcvar_seconds), "DeleteEntity", iEntity)
#endif
return PLUGIN_CONTINUE;
}
Diffrence? Lets see....
I use my edited version of his bomb found on the last post...
1. Removed False bool in his case my bits.
2. Removed pointer in zp 50 pointer is removed because of zp5.0 diffrent cvars.
PHP Code:
_ClearBomb(id)
set_pcvar_num(_pcvar_flaregrenades,1)
Added message from your server a.k.a advertisement
PHP Code:
print_chatColor(id, "\g[eQuilibriumCS.com] \nYou have to wait %f seconds to use this again.", get_pcvar_float(cvar_shield_cooldown))
Removed code for random color...
PHP Code:
if(is_valid_ent(iEntity))
{
new Float:vColor[3]
for(new i; i < 3; i++)
vColor[i] = random_float(0.0, 255.0)
entity_set_vector(iEntity, EV_VEC_rendercolor, vColor)
}
Now look at the code carefully other people can see it everything is the same only its defined by cvar sec that forcefield is removed so please add "Lucas" a.k.a
lucas_7_94 in credits because that code is not from your friend its from lucas...
Next we have...
PHP Code:
public DeleteEntity( entity )
if( is_valid_ent( entity ) )
remove_entity( entity );
PHP Code:
public DeleteEntity(entity)
{
if(is_valid_ent(entity))
remove_entity(entity)
}
Diffrence?
EDIT: I see you edited and finally added him. I wont continue posting because i proved my point.
I will not look at the code anymore.
__________________