Raised This Month: $ Target: $400
 0% 

[help]how to detect if user is las on hes team?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-14-2011 , 16:54   Re: [help]how to detect if user is las on hes team?
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
}

public 
Wow()
{
    new 
playersT32 ] , num tCount
    
new szName32 get_user_nameid szName charsmaxszName ) );
    
get_playersplayersT num "ach" "TERRORIST" )
    for( 
0numi++ )
    {
    
tCount++
    }

    if( 
tCount == )
    {
    
client_print(0print_chat,"%s Is the last Vampire!",szName)
    }
}

public 
Woo()
{
    new 
playersCT32 ] , num ,ctCount
    
new szName32 get_user_nameid szName charsmaxszName ) )
    
get_players(playersCT num "ach" "CT")
    for(
0numi++ )
    {
        
ctCount++
    }
    
    if(
ctCount == )
    }
    
client_print(0print_chat,"%s Is The last humen Eat HIM!",szName)
    } 

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Expected token: ";", but found "-identifier-" on line 20
Error: Undefined symbol "id" on line 20
Warning: Expression has no effect on line 20
Warning: Expression has no effect on line 20
Error: Expected token: ";", but found ")" on line 20
Error: Too many error messages on one line on line 20

Compilation aborted.
4 Errors.
Could not locate output file C:\Program\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
2reason2kill is offline
 



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 23:26.


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