Raised This Month: $ Target: $400
 0% 

Can somebody convert this adminmod plugin please?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bidybag
Member
Join Date: Apr 2005
Old 05-06-2006 , 19:10   Can somebody convert this adminmod plugin please?
Reply With Quote #1

Please can somebody get this plugin working for amx. It just sends an auto message out every 5 min as a text message from me.








#include <core>
#include <string>
#include <admin>
#include <adminlib>

new AM_VERSION_STRING[] = "2.50.05";

public say_hello(Timer,Repeat,HLName,HLParam) {
new User[MAX_NAME_LENGTH];
new Msg[MAX_TEXT_LENGTH];

getstrvar("admin_connect_msg",Msg,MAX_TEXT_LE NGTH);
if ( Msg[0] == '0' && Msg[1] == '^0' ) return;
convert_string(HLName,User,MAX_NAME_LENGTH);
messageex(User,"Bidybag: To gamble and win a prize, this this in the chat: roll the dice",print_chat);
messageex(User,"Bidybag: To glow a different color, type this in the chat: glow help",print_chat);
messageex(User,"Bidybag: To use hook, type this in the console: bind x +hook .Replace X with the key you want to use",print_chat);
messageex(User,"Bidybag: ---GO TO CONSOLE TO SEE THIS MESSAGE AGAIN (button under escape key)---",print_chat);
}

public say_stuff(Timer,Repeat,HLName,HLParam) {
new Msg[MAX_TEXT_LENGTH];

getstrvar("admin_repeat_msg",Msg,MAX_TEXT_LEN GTH);
if ( Msg[0] == '0' && Msg[1] == '^0' ) return;
centersay(Msg,10,0,255,0);
say("Bidybag: To gamble and win a prize, this this in the chat: roll the dice");
say("Bidybag: To glow a different color, type this in the chat: glow help");
say("Bidybag: To use hook, type this in the console: bind x +hook .Replace X with the key you want to use");
say("Bidybag: ---GO TO CONSOLE TO SEE THIS MESSAGE AGAIN (button under escape key)---");
}

public plugin_connect(HLUserName, HLIP, UserIndex) {
set_timer("say_hello",45,0);
return PLUGIN_CONTINUE;
}

public plugin_init() {
plugin_registerinfo("Auto-Messaging Plugin","Shows message on connect, as well as a message every x minutes.",AM_VERSION_STRING);
new iRepeatInterval = getvar("admin_repeat_freq");
if ( iRepeatInterval >= 15 ) {
set_timer("say_stuff", iRepeatInterval, 99999);
}
return PLUGIN_CONTINUE;
}
Bidybag is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-06-2006 , 19:39  
Reply With Quote #2

Since you're not asking help about the actual plugin, this doesn't belong in this section - try the "Suggestions/Request" section.
Peli is offline
Send a message via MSN to Peli
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-06-2006 , 19:53  
Reply With Quote #3

Don't bother posting there just use this its a better version that does the same thing.

http://forums.alliedmods.net/showthread.php?t=27814

Note: For future reference Admin mod code isn't portable. You have to explain what the plugin does so it can be recreated.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Bidybag
Member
Join Date: Apr 2005
Old 05-06-2006 , 19:58  
Reply With Quote #4

I did explain.

That mod doesnt let you make a text message show every 5 min.
Bidybag is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 05-07-2006 , 08:46  
Reply With Quote #5

Quote:
Originally Posted by Suicid3
Note: For future reference Admin mod code isn't portable. You have to explain what the plugin does so it can be recreated.
Thats right, but he wasn't talking about porting. He was talking about converting ;)
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood 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 05:10.


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