Raised This Month: $ Target: $400
 0% 

set_task timing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 05-20-2010 , 16:41   Re: set_task timing
Reply With Quote #1

Fill in your code, but try this.
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN  "Caesar_" #define AUTHOR  "RemoWilliams" #define VERSION "1.0" #define START_TIME 10.0 new Float:g_TaskTime = START_TIME; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     set_task(START_TIME,"fn"); } public fn(id) {     /*for( new i=0; i<inum ;++i )     {         if (cs_get_user_team(all[i]) != cs_get_user_team(id) && is_user_alive(all[i]))         {             client_cmd(all[i], "spk ^"misc/eac140^"");             set_task(3.0,"fire_rocket",all[i]);             set_task(3.1,"Shake2");         }         else         {             client_cmd(all[i], "spk ^"misc/ac140^"");         }     }*/     g_TaskTime += 0.1;     set_task(g_TaskTime,"fn"); }
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
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 03:33.


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