Raised This Month: $ Target: $400
 0% 

Plugin Generated MOTD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 03-13-2010 , 20:01   Plugin Generated MOTD
Reply With Quote #1

Hey guys, just like the title states, wondering how to make a plugin create a MOTD pop up on it's own rather than having a separate file..

I've looked over some scripts and tried to put this together, some things to note in my script, it uses a for loop to print all strings in this array:

Code:
new const g_szWords[][] = {     "holyshit",     "lag",     "please",     "nfs",     "stfu",     "english",     "hugebitch",     "haha",     "who",     "hacks",     "fag" }

The registered clcmd goes to this display(id) function:

Code:
public display(id) {     new buffer[1024]     new len = copy(buffer, 1023, "Available Sounds:^n")     for (new i = 0; i < sizeof(g_szWords); i++)     {         len += copy(buffer[len], 1023-len, "^n")         len += copy(buffer[len], 1023-len, g_szWords[i])     }     show_motd(id,buffer ,"Type Sounds - By: Dizzy");         return PLUGIN_CONTINUE; }

However, not working =/
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
 



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 08:43.


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