Raised This Month: $ Target: $400
 0% 

terrorist can defuse


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ÜnLoCo
Member
Join Date: Dec 2009
Location: 35.77N, 10.82E
Old 06-13-2010 , 09:09   terrorist can defuse
Reply With Quote #1

hello
let's say i gave a terrorist a defuser kit
PHP Code:
cs_set_user_defuse(id
and then
PHP Code:
RegisterHam(Ham_Use"grenade""C4Used"
what should i write after i know that the defuser is a terrorist

PHP Code:
public C4Used(iC4ididactivatoruse_typeFloat:value)
{
    if(
use_type == && value == 1.0 && get_user_team(id) == 1){
        
//plz help .. i want this terro to be able to defuse now. !
    
}

i'm writing this plugin so that a ct can pick up the dropped bomb and plant it.
then terrorists have to defuse it.
i have been able to prevent ct from defusing
PHP Code:
if(use_type == && value == 1.0 && get_user_team(id) == 2){
return         
HAM_SUPERCEED

but it got trickier when i wanted to allow a terrorist to defuse that c4 bomb.

help!
__________________
ÜnLoCo 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 14:47.


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