AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Refill Spray, Death Money (https://forums.alliedmods.net/showthread.php?t=40994)

tsilenzio 07-07-2006 10:57

Refill Spray, Death Money
 
This is for CS only:

I was wondering (if its possible) that if anyone would know a command or anything that will refill a players spray, and give them $300. (This would produce the same thing as one player killing another.)

Thank you very much - in advance :)

Rolnaaba 07-07-2006 11:06

Re: Refill Spray, Death Money
 
you want to make it so when someone kills someone else the killer is awarded $300 and his spray refilled?

tsilenzio 07-07-2006 11:15

Re: Refill Spray, Death Money
 
Well, see with my plugin when you kill someone, you really dont. The game kills them, and adds a score to ur frag, and adds a score to their death, then generates a death message, but yea thats what I want

Rolnaaba 07-07-2006 11:19

Re: Refill Spray, Death Money
 
i dunno if there is a command to refill their spray but on your DeathMsg just use:
Code:
new attacker = read_data(1) cs_set_user_money(attacker, cs_get_user_money(attacker) + 300)

tsilenzio 07-07-2006 11:21

Re: Refill Spray, Death Money
 
ah thanks man! :)

Rolnaaba 07-07-2006 11:23

Re: Refill Spray, Death Money
 
that will give the killer 300 more money, also make sure to include <cstrike> and make sure u put that in ur deathmsg if u have a
Code:
register_event("DeathMsg", "DeathMsg", "a")
defined already :)


All times are GMT -4. The time now is 08:02.

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