Raised This Month: $ Target: $400
 0% 

how to hold user ip/authid/userid in plugin ??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 12-03-2010 , 11:53   how to hold user ip/authid/userid in plugin ??
Reply With Quote #1

Hey, I would like to make a plugin that gives an advertisement messages...

PHP Code:
like msgShown[33] = 0;

swtich(msgShown[id]){
   case 
0client_print(idprint_chat"ad number 1"msgShown[id]++;
   case 
1client_print(idprint_chat"ad number 2"msgShown[id]++;
   case 
2client_print(idprint_chat"ad number 3"msgShown[id]++;
   case 
3client_print(idprint_chat"ad number 4"msgShown[id]++;

But if user disconnects, the messages will be shown from start...

These 4 messages should be displayed in order within 1 map :]

Should it look like:

PHP Code:
new userid get_user_userid(id);

client_print(useridprint_chat"ad number 1"msgShown[userid]++; 
reinert 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 11:24.


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