Raised This Month: $ Target: $400
 0% 

script problem, help please?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2007 , 01:32   Re: script problem, help please?
Reply With Quote #4

Sure, i was just thinking of that, after posted...

Either you do 1 task per player that basically is bad :
Code:
#include <amxmodx> #define PLUGIN "Ads" #define VERSION "1.0" #define AUTHOR "nuki" #define TASKID 123456 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public client_connect(id) {     set_task(400.0, "PrintText", id+TASKID, _, _, "b") } public client_disconnect(id) {     remove_task(id+TASKID) } public PrintText(id) {     id -= TASKID     client_print(id, print_chat, "Message that will be displayed") }

either you make only 1 task for all players that is better :
Code:
#include <amxmod> #define PLUGIN "Ads" #define VERSION "1.0" #define AUTHOR "nuki" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public plugin_cfg() {     set_task(400.0, "PrintText", _, _, _, "b") } public PrintText() {     client_print(0, print_chat, "Message that will be displayed") }

Last edited by ConnorMcLeod; 09-23-2007 at 03:41.
ConnorMcLeod 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 16:11.


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