Raised This Month: $ Target: $400
 0% 

Bomb Pickup Event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avenger_ansh
Junior Member
Join Date: Dec 2006
Old 08-15-2008 , 14:47   Bomb Pickup Event
Reply With Quote #1

Hi,

I want to disable planting if a specific task exists but only when the bomb is picked up but cs_set_user_plant doesnt seem to be working in the following code:

PHP Code:
    register_event("TextMsg","event_bomb_pickup","bc","2&#Got_bomb")

public 
event_bomb_pickup(id)
{
    if(
task_exists(TASK_ID))
    {
        
client_print(idprint_chat"Planting Disabled")
        
cs_set_user_plant(id00)
    }

I can see the Planting Disabled message when i pick up the bomb but I can still plant the bomb

cs_set_user_plant works with the following but these events r also fired when the round starts:

PHP Code:
register_event("StatusIcon""event_bomb_pickup""be""1=1""1=2""2=c4"
PHP Code:
register_event("WeapPickup""event_bomb_pickup""be""1=6"
avenger_ansh 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 03:15.


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