Raised This Month: $ Target: $400
 0% 

Help me with set_task?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 05-23-2020 , 16:18   Re: Help me with set_task?
Reply With Quote #1

Quote:
Originally Posted by DJEarthQuake View Post
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) }

thanks to both of them both work properly, and thanks for showing me how to use the set_task!
Arje is offline
Reply



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