AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Cs (https://forums.alliedmods.net/showthread.php?t=248616)

vedant007 09-20-2014 13:21

Cs
 
--

HamletEagle 09-21-2014 03:59

Re: Ultimate Server Menu for ALL
 
For me, it seems useless. If you can explain the purpose it will be good.

1. Your menu is not dinamyc, so you can create it in plugin_cfg.
2. menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); it's default, you don't have to add it.
3.
Code:
new command[6], name[64], access, callback; menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

You don't need to get menu info.

4. In color_saytext: cache get_user_msgid("SayText")
5.
Code:
public connectmessage(id) {     if(is_user_connected(id))     {         color_saytext(id, "^x01[^x04 Server Name ^x01] ^x01Say ^x04/smenu ^x01 to use usefull commands & more.") // After changing clcmd you can edit in this.     } }

Where are you calling this ? Because, it's not a default amxx forward or sth, so it won't ever get executed. Also, if you want a connect message, set a task to 3.0 seconds from client_putinserver.

I know you are a beginner, it's good to start with easy plugins, this make you want to do more, to advance, but this is crap.

For "[Server Name]" from messages, you can create a cvar, so it would be easy to modify.

And what if the server owners like your plugin but don't like your custom plugins ? You are forcing them to use it.

This may have potential, if it's done corectly. Create a ini file in which peoples can add they own command and menu items name, then create a menu with the file content. You won't need to provide another plugins with your one, so you don't force server owners to use this plugins, everything will be dynamic.

hornet 09-21-2014 09:48

Re: Ultimate Server Menu for ALL
 
This is just several plugins added into a menu. Please post here when you have a better understanding of how to write your own plugins.

Unapproved.

HamletEagle 09-21-2014 11:35

Re: Ultimate Server Menu for ALL
 
You didn't get what I mean. You create a "configuration file", in which peoples write their own commands like:
Code:

ResetScore "say /rs"
Test          "say /test"

Then, your plugin will read this file and add as items ResetScore and Test, and as command what is near them, "say /rs", "say /test".


All times are GMT -4. The time now is 10:44.

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