Raised This Month: $ Target: $400
 0% 

How to detect when a T is standing on a CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 06-30-2010 , 09:10   Re: How to detect when a T is standing on a CT
Reply With Quote #3

you can use something like this
PHP Code:
new CsTeams:iTeamiStoodOn;

iTeam cs_get_user_team(id);
iStoodOn pev(idpev_groundentity);

if(
iStoodOn get_maxplayers)
{
    if(
iTeam != cs_get_user_team(iStoodOn))
    {
         
//id is stood on a player who is on the opposite team
    
}

untested
__________________
minimiller is offline
Send a message via MSN to minimiller
 



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


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