First time make sma ... help !!!
2 Attachment(s)
I want to make a change player model menu
help me ... thx !!! Quote:
|
Re: First time make sma ... help !!!
Wrong section. This is sourcemod.
|
Re: First time make sma ... help !!!
Code:
#include <amxmodx>2) Why did you define "menu_create"? It's in the menu system. 3) There's so many ways to put the information in the "register_plugin". It always goes: "Plugin"-"Version"-"Author". You can set them as: new const g_szPlugin [] = "My Plugin Name"; if you are going to use it later in the code as in print in chat or something. It all depends on how or where are you going to use them. If you're not going to use any of them anywhere else in the code, just put them like this: "register_plugin( "My Plugin Name", "0.0.1", "Baws" );" It's up to you. 4) Why did you put "return PLUGIN_CONTINUE;" in the "plugin_init"? Do you know the use of: "return;"-"return PLUGIN_HANDLED;"-"return PLUGIN_CONTINUE;"-...etc ? 5) Look at number 4. 6) Whenever you're adding an item in the menu, it's number is already defined automatically. 7) The cases need to start by "case 0:" then you continue like "case 1:"-"case 2:"...etc. 8) "client_print_color" and "client_print" are the same use basically. The "client_print_color" is to print the words in the colors you tell it to print with, but "client_print" is simply to print in the default yellow color. 9) Before setting a new model on a user, I suggest to reset it first and then adding the new model. |
| All times are GMT -4. The time now is 09:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.