Raised This Month: $ Target: $400
 0% 

One shot kill


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
DarlD
Senior Member
Join Date: Aug 2004
Old 03-11-2005 , 00:53   One shot kill
Reply With Quote #1

Instabig for cs 1.6.

first script ever.

v4

by DarlD and Rek_

features: scout and 20 hp at spawn
faster walking

think you can survive?
Attached Files
File Type: sma Get Plugin or Get Source (oneshot.sma - 1044 views - 1.2 KB)
DarlD is offline
Send a message via MSN to DarlD
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-11-2005 , 17:51  
Reply With Quote #2

Don't hook ResetHUD for that. People can use fullupdate and get 50 health/100 armor and a full scout again. I would suggest using
Code:
register_logevent("function",2,"0=World triggered","1=Round_Start")
__________________
twistedeuphoria is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-11-2005 , 19:56  
Reply With Quote #3

or u could block fullupdate
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
DarlD
Senior Member
Join Date: Aug 2004
Old 03-12-2005 , 00:12  
Reply With Quote #4

hey total newb here, i made this and weidly and suprisingly it compiles, it doesnt work ingame tho. ill need some help to fix it, any one got aim?

EDIT: i changed it and it compiles, but still gives me error ingame it just wont work :S
DarlD is offline
Send a message via MSN to DarlD
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-12-2005 , 00:29  
Reply With Quote #5

fullupdate actually calls ResetHUD? Since when? :-p
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-12-2005 , 00:48  
Reply With Quote #6

Quote:
Originally Posted by TotalNoobScripter
or u could block fullupdate
Physically impossible. You cannot block a client command.

And Avalanche, it ALWAYS has. Try searching the forums, its been discussed.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
DarlD
Senior Member
Join Date: Aug 2004
Old 03-12-2005 , 01:39  
Reply With Quote #7

weirdly when i put cs_set_user_money it failes to compile :S
DarlD is offline
Send a message via MSN to DarlD
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-12-2005 , 01:54  
Reply With Quote #8

Did you remember to #include <cstrike> ?
__________________
twistedeuphoria is offline
DarlD
Senior Member
Join Date: Aug 2004
Old 03-12-2005 , 02:02  
Reply With Quote #9

yeah its included

here what it looks like:
Code:
/* One shot kill, for Amx Mod X Created by DarlD */ #include <amxmodx> #include <cstrike> #include <fun> public plugin_init() // im starting my plugin here {     register_plugin("One shot kill","0.1","DarlD")     register_cvar("amx_oneshot","1")     register_event("ResetHUD","event_resethud","b"); } public event_resethud(id) { // when a user's HUD is reset    if(is_user_connected(id)) { // make sure they are connected (just to be sure)       // most of the time ResetHUD is called when       // a user spawns, but it can be called other times.       // when it IS called when they spawn, they are still       // technically dead. so we wait one tenth of a second       // to see if they alive, and if so it means they just       // spawned, which is when we want to do this.       set_task(0.1,"dostuff",id)    } } public dostuff(id) {    // if user is alive    if(is_user_alive(id)) {       set_user_health(id,20)       strip_user_weapons(id)       give_item(id,"weapon_scout")       give_item(id,"ammo_scout")       cs_set_user_money(id,"0");    } }
DarlD is offline
Send a message via MSN to DarlD
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-12-2005 , 02:04  
Reply With Quote #10

Take the quotes off from around the 0 in cs_set_user_money.
__________________
twistedeuphoria is offline
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 18:02.


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