public RazeBlack(id)
{
new origin[3], dist = 300
get_user_origin(id, origin)
message_begin( MSG_BROADCAST, SVC_TEMPENTITY, origin )
write_byte(TE_BEAMCYLINDER)
write_coord( origin[0])
write_coord( origin[1])
write_coord( origin[2])
write_coord( origin[0])
write_coord( origin[1])
write_coord( origin[2] + dist)
write_short( sprite_white )
write_byte( 0 ) // startframe
write_byte( 0 ) // framerate
write_byte( 6 ) // life
write_byte( 60 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) //kolor rgb
write_byte( 255 ) //kolor rgb
write_byte( 255 ) //kolor rgb
write_byte( 150 ) //brightness
write_byte( 0 ) // speed
message_end()
new entlist[33], Float:forigin[3], Float:damage = 30.0
IVecFVec( origin, forigin );
new numfound = find_sphere_class(id,"player", float(dist),entlist, 32,forigin);
for (new i=0; i < numfound; i++)
{
new pid = entlist[i];
if (get_user_team(pid) == get_user_team(id))
continue;
if (is_user_alive(pid)) ExecuteHam(Ham_TakeDamage, pid, 0, id, damage, 1);
}
return PLUGIN_HANDLED;
}
ja dodalem na koncu return PLUGIN_HANDLED; i nie ma napisu unknown command
ja jestem w tym w ogóle zielony
Użytkownik rysiek96 edytował ten post 07.09.2013 18:12