Raised This Month: $ Target: $400
 0% 

check problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 04-17-2013 , 16:26   check problem
Reply With Quote #1

hey everyone i want a simple help,i want to check when someone is the last ct alive but i don't know how to check it...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Astro
Member
Join Date: Jul 2011
Old 04-17-2013 , 16:44   Re: check problem
Reply With Quote #2

Code:
bool:IsLastAliveCT(id) {     new players[32], num;     get_players(players, num, "aeh", "CT");     return num == 1 && players[0] == id; }

If you are hooking player spawn, death and disconnect events (anyhow) you could use a counter.

Last edited by Astro; 04-17-2013 at 16:51.
Astro is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-17-2013 , 16:50   Re: check problem
Reply With Quote #3

Open miscstats.sma and see code in client_death or DeathMsg callback, search for last man standing feature.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 10:47.


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