Register kills?
Hello again.
How can I register kills? I mean like the unreal tournament sounds. If I want to create a plugin that gets enabled for 1 person after an amount of kills, how should I do? |
Like if total kills == 10 then play sound?
|
Nope... It should be like a "superpower".
A cvar. register_cvar("*pluginname*_amount", "10") The 10 means you need 10 kills to make it enabled then you use like a command... Hmm lets see... +super, so if you type +super in console or if you bound it to a key you get like a random power... Like noclip. Godmode for 5 seconds. And if you try to do +super and you don't have 10 kills, then you get slapped like 15 times, or go on fire :lol: Quote:
It is like Code:
if(get_user_kills == (get_cvar_num("***_amount") ) ) { |
Yeah, i got it. But i didn't see a good and specific sripting question in your posts.
You can use csx module to get total kills: Code:
If you want count kills yourself register DeathMsg event and check if killer killed someone else, then increase global variable value + 1 |
Err... I don't understand anything in there :?
Should I explain exactly what I want to create. Well... There should be random powers. If you use the command before you get burnt or slapped or something like that. I'm bad at explaining things... Actually that's everything I want it to do :? |
I know how I could do... But that would be very annoying for the player, and I think it only work for sounds
Code:
if(get_user_frags(id) == (get_cvar_num("***_amount") ) ) { |
| All times are GMT -4. The time now is 20:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.