Raised This Month: $ Target: $400
 0% 

Help me with set_task?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-23-2020 , 15:16   Re: Help me with set_task?
Reply With Quote #3

Quote:
Originally Posted by Arje View Post
Hello !! well, I am using this plugin and it works correctly, but I would like the event of granting money after defuse to happen 1 or 2 seconds after I have defused,
I think this can be done with the set_task function but I don't know how to apply it.
https://www.amxmodx.org/api/amxmodx/set_task
Code:
public bomb_defused(id) {     set_task(random_float(1.0,2.0),"CT_bomb_reward", id) } public CT_bomb_reward(id) {     new money = cs_get_user_money(id)     new bonus = get_pcvar_num(PCvarDefuseBonus)     cs_set_user_money(id, money + bonus) }
__________________

Last edited by DJEarthQuake; 05-23-2020 at 15:24. Reason: Did the opposite. My bad Bugsy no response when I began.
DJEarthQuake 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 17:09.


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