Try this :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
#define write_coord_f(%1) engfunc(EngFunc_WriteCoord, %1)
new g_iUniqueDecal
public plugin_init()
{
register_plugin("All Player Same Tag", VERSION, "ConnorMcLeod")
g_iUniqueDecal = engfunc( EngFunc_DecalIndex , "{siteB" )
register_message(SVC_TEMPENTITY, "Message_TempEntity")
}
public Message_TempEntity()
{
if( get_msg_arg_int(1) == TE_PLAYERDECAL )
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_WORLDDECAL)
write_coord_f(get_msg_arg_float(2))
write_coord_f(get_msg_arg_float(3))
write_coord_f(get_msg_arg_float(4))
write_byte(g_iUniqueDecal)
message_end()
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
-edit-
WTF engfunc( EngFunc_DecalIndex , "{siteB" ) returns always 0
I was using this in a private gore plugin and was working fine (hadn't rested it)
PHP Code:
GetBloodDecals()
{
new szDecalName[11], i
while( i < sizeof( g_iBloodDecals ) )
{
formatex(szDecalName, charsmax( szDecalName ), "{blood%d", i + 1)
g_iBloodDecals[ i++ ] = engfunc( EngFunc_DecalIndex , szDecalName )
}
i = 0
while( i < sizeof( g_iBigBloodDecals ) )
{
formatex(szDecalName, charsmax( szDecalName ), "{bigblood%d", i + 1)
g_iBigBloodDecals[ i++ ] = engfunc( EngFunc_DecalIndex , szDecalName )
}
}
__________________