AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   check problem (https://forums.alliedmods.net/showthread.php?t=213698)

oxygen935 04-17-2013 16:26

check problem
 
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...

Astro 04-17-2013 16:44

Re: check problem
 
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.

ConnorMcLeod 04-17-2013 16:50

Re: check problem
 
Open miscstats.sma and see code in client_death or DeathMsg callback, search for last man standing feature.


All times are GMT -4. The time now is 10:47.

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