Raised This Month: $ Target: $400
 0% 

Killing TE_SMOKE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DahVid
Senior Member
Join Date: Jun 2005
Old 08-23-2005 , 03:17   Killing TE_SMOKE
Reply With Quote #1

Trying to kill the smoke puff, obviously what i'm doing now won't work..

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("TS Message Experimentation","0.1","DahVid")     register_clcmd("puff","puff")     register_clcmd("pass","pass") } new blunt=0 new bool:puffy=false new kill=0 new smoke public plugin_precache() {     precache_sound("player/breathe1.wav")     precache_sound("scientist/yees.wav")     smoke=precache_model("sprites/smoke.spr") } public puff(id) {     if(is_user_connected(id) && is_user_alive(id)) {         if(puffy==false) {             client_print(id,print_chat,"WTF U SMOKIN IT NOW FAGGOTASS MOTHAFUCKA NIGGAAA!")         }         puffy=true         client_print(id,print_chat,"You have the blunt, type in console pass <UserName> to pass it!")         emit_sound(0,1,"player/breathe1.wav",1.0,ATTN_NORM,0,PITCH_NORM)         set_task(0.1,"message",id,_,_,"b")         if(blunt==0) {             return PLUGIN_HANDLED         }         kill=1         set_task(20.0,"killpuff")         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE } public pass(id) {     if(blunt==0) {         client_print(id,print_chat,"WTF YOU AINT GOT NO CHEEBAH BITCH")         return PLUGIN_HANDLED     }     killpuff(id)     blunt=0     kill=0     puffy=false         new targname[33]     read_argv(1,targname,32)     new target=cmd_target(id,targname,9)         if(strlen(targname) < 1) {         client_print(id,print_console,"WTF TELL ME WHICH BRUTHA TO PASS IT TO BIZITCH!")         return PLUGIN_HANDLED     }     if(strlen(targname) > 12) {         client_print(id,print_console,"YO HE GOT A FUCKED UP NAME YOOO!!")     }         client_print(id,print_chat,"Yo, thanks fo passin brotha %s da cheebuh.",target)     emit_sound(0,1,"scientist/yees.wav",1.0,ATTN_NORM,0,PITCH_NORM)         set_task(0.1,"puff",target,_,_,"b")     return PLUGIN_CONTINUE } public message(id) {     new beginorigin[3]     get_user_origin(id,beginorigin,1)         message_begin(MSG_BROADCAST,SVC_TEMPENTITY)     write_byte(5)     write_coord(beginorigin[0])     write_coord(beginorigin[1])     write_coord(beginorigin[2])     write_short(smoke)     write_byte(10)     write_byte(30)     message_end() } public killpuff(id) {     puffy=false     if(kill==1) {         client_print(id,print_chat,"BITCH YOU DUN SMOKE DAT WHOLE CHEEBAH!!")     }     new beginorigin[3]     get_user_origin(id,beginorigin,1)         message_begin(MSG_BROADCAST,SVC_TEMPENTITY)     write_byte(5)     write_coord(beginorigin[0])     write_coord(beginorigin[1])     write_coord(beginorigin[2])     write_short(1)     write_byte(10)     write_byte(30)     message_end() }
DahVid is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-23-2005 , 16:12  
Reply With Quote #2

My virgin eyes!!

Bet seriously, I don't know if you can stop it early.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-23-2005 , 18:48  
Reply With Quote #3

just remove the enitity..i think :/
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 08-23-2005 , 18:48   hmm
Reply With Quote #4

Disregard this post.
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-23-2005 , 18:50  
Reply With Quote #5

knekter, this doesn't have anything to do with smoke grenades, he's using the tempentity TE_SMOKE to create smoke puffs and wants to know how to remove them on cue.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 08-23-2005 , 19:08  
Reply With Quote #6

lol whoops, my bad, should have read before I posted!
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Reply



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 14:17.


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