Method to check last CT
Anyone knows a method to check the last CT and give him health and armour?
I tried many ways but my server is crashing.:cry: |
Re: Method to check last CT
Hook DeathMsg and check the total amount of alive players using get_players. Flags for that function can be found on the wiki.
|
Re: Method to check last CT
Like Backstabnoob said, check this every DeathMsg event
Code:
new iPlayers[33], iNum; |
Re: Method to check last CT
Quote:
|
Re: Method to check last CT
Quote:
|
Re: Method to check last CT
you should add a global boolean to check if CT already received hp and armor, otherwise last CT will receive health and armour every time he kills a terrorist
|
Re: Method to check last CT
Just an added note. Hook HLTV event for deathmsg.
And Alka I used to do the same mistakes few times.. int vs new :P |
Re: Method to check last CT
Quote:
Code:
|
Re: Method to check last CT
@Backstabnoob - useless? Why give a certain state when you can include the code you want to execute in that if() ...
|
Re: Method to check last CT
Please read the post I quoted...
|
| All times are GMT -4. The time now is 05:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.