ESF天神殿CS七龙珠|ESFKAMI Earth's Special Forces Homepage
Forum Home Forum Home > 代码|Codes > 插件代码|AMX Mod X Code
  New Posts New Posts
  FAQ FAQ  Forum Search    RegisterRegister  Login Login

[Code] BeamTorus FX

 Post Reply Post Reply
Author
Message
Turbo View Drop Down
Admin Group
Admin Group
Avatar

Joined: 10 Oct 2016
Location: Argentina
Posts: 6
Post Options Post Options   Quote Turbo Quote  Post ReplyReply Direct Link To This Post Topic: [Code] BeamTorus FX
    Posted: 07 Dec 2016 at 8:25am
Description:
[ES] Este efecto es el mismo que fxBeamTorus en CCI
[EN] This effect is the same as fxBeamTorus in CCI

new sprite_beam

public BeamTorusFX(id)
{
new origin[3]
get_user_origin(id, origin)
message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
write_byte( TE_BEAMTORUS );
write_coord( origin[0]); // Start X
write_coord( origin[1] ); // Start Y
write_coord( origin[2]); // Start Z
write_coord( origin[0] ); // End X
write_coord( origin[1] ); // End Y
write_coord( origin[2] + 850); // End Z
write_short( sprite_beam ); // sprite
write_byte( 0 ); // Starting frame
write_byte( 0  ); // framerate * 0.1
write_byte( 11 ); // life * 0.1
write_byte( 100 ); // width
write_byte( 50 ); // noise
write_byte( 255 ); // color r
write_byte( 255 ); // color g
write_byte( 255 ); // color b
write_byte( 255 ); // brightness
write_byte( 3 ); // scroll speed
message_end();
}

public plugin_precache()
{
sprite_beam = precache_model("sprites/lgtning.spr");
}




Edited by Turbo - 12 Dec 2016 at 2:17am
Back to Top
Jerry小坏 View Drop Down
Admin Group
Admin Group
Avatar

Joined: 10 Dec 2016
Location: China
Posts: 271
Post Options Post Options   Quote Jerry小坏 Quote  Post ReplyReply Direct Link To This Post Posted: 07 Dec 2016 at 10:46am
es buenoThumbs Up
Back to Top
D@nG3R!U0S View Drop Down
Newbie
Newbie


Joined: 25 Mar 2017
Location: Lithuania
Posts: 3
Post Options Post Options   Quote D@nG3R!U0S Quote  Post ReplyReply Direct Link To This Post Posted: 25 Mar 2017 at 9:54pm
MOD.Weapon.core(81) : error 017: undefined symbol "origin"
MOD.Weapon.core(81) : warning 215: expression has no effect
MOD.Weapon.core(81) : error 001: expected token: ";", but found "]"
MOD.Weapon.core(81) : error 029: invalid expression, assumed zero
MOD.Weapon.core(81) : fatal error 107: too many error messages on one line
wtf? where need insert "origin"?


Edited by D@nG3R!U0S - 30 Mar 2017 at 4:15am
Back to Top
 Post Reply Post Reply

Quick Reply
Name:

Message:
   Enable BBcodes to format post
Security Code:
Code Image - Please contact webmaster if you have problems seeing this image code Load New Code
CAPTCHA Software by Web Wiz CAPTCHA version 4.0 wwf
Copyright ©2005-2008 Web Wiz
Please enter the Security Code exactly as shown in image format.
Cookies must be enabled on your web browser.
 

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.64 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in .140 seconds.