Raised This Month: $ Target: $400
 0% 

Beam Help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 08:19   Beam Help.
Reply With Quote #1

Would anyone be kind enough to make me the code so when a user says /beam a laser beam shoots out for 5 seconds. I'll do the rest, thank you.
__________________

Dutchie is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-25-2007 , 09:04   Re: Beam Help.
Reply With Quote #2

Dutch will help Dutchie,

Code:
message_begin( MSG_BROADCAST, SVC_TEMPENTITY) write_byte(0) // TE_BEAMPOINTS write_coord(startloc[0]) write_coord(startloc[1]) write_coord(startloc[2]) // start location write_coord(endloc[0]) write_coord(endloc[1]) write_coord(endloc[2]) // end location write_short(spritename) // spritename write_byte(startframe) // start frame write_byte(framerate) // framerate write_byte(life) // life write_byte(width) // line width write_byte(amplitude) // amplitude write_byte(255) write_byte(255) write_byte(255) // color write_byte(brightness) // brightness write_byte(speed) // speed message_end()
Change 'life' to 5 or more seconds.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 09:06   Re: Beam Help.
Reply With Quote #3

Ah I tried and it says my /beamme won't do anything.. Hmm
__________________

Dutchie is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-25-2007 , 09:07   Re: Beam Help.
Reply With Quote #4

show me the full code.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 09:11   Re: Beam Help.
Reply With Quote #5

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Beamme"
#define VERSION "1.0"
#define AUTHOR "Dutchie"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
register_cmd(say("/beamme" "Beamme" "chatsay"    
    message_begin( MSG_BROADCAST, SVC_TEMPENTITY) 
write_byte(0) // TE_BEAMPOINTS 
write_coord(startloc[0]) 
write_coord(startloc[1]) 
write_coord(startloc[2]) // start location 
write_coord(endloc[0]) 
write_coord(endloc[1]) 
write_coord(endloc[2]) // end location 
write_short(spritename) // spritename 
write_byte(startframe) // start frame 
write_byte(framerate) // framerate 
write_byte(life) // life 
write_byte(width) // line width 
write_byte(amplitude) // amplitude 
write_byte(255) 
write_byte(255) 
write_byte(255) // color 
write_byte(brightness) // brightness 
write_byte(speed) // speed 
message_end ()
}
Yeah, I'm, farly new to coding, don't ask I know it's sloppy.
__________________

Dutchie is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-25-2007 , 09:18   Re: Beam Help.
Reply With Quote #6

haha, i can see that...
pff, first learn how to make a basic plugin, and then learn how to precache a sprite...
If you are able to create your own function, post again, because you have alot to learn
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 09:19   Re: Beam Help.
Reply With Quote #7

Yeah I'm going to go re-read all of that PAWN language.
__________________

Dutchie is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-25-2007 , 10:33   Re: Beam Help.
Reply With Quote #8

Yes, and also take a look at the Amxx 'how-to-make-a-plugin' tutorial, wherever that may be.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 16:37   Re: Beam Help.
Reply With Quote #9

Sure will. =)
__________________

Dutchie is offline
blackops7799
Senior Member
Join Date: May 2006
Old 01-25-2007 , 20:42   Re: Beam Help.
Reply With Quote #10

EDIT: n.m..
blackops7799 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode