AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   NoSpread Menu (https://forums.alliedmods.net/showthread.php?t=316811)

BaljeeT 06-11-2019 07:23

NoSpread Menu
 
2 Attachment(s)
NoSpread Menu


Hey guys!, So I build a plugin that opens No-Spread Menu

Commands:
PHP Code:

sm_nospread 

Installation:

Move NoSpread.smx to "addons/sourcemod/plugins".

Move NoSpread.sp to "addons/sourcemod/scripting".

My Discord: .baljeet#0687
Steam: https://steamcommunity.com/id/BaljeeTo/


ScreenShot:
https://cdn.discordapp.com/attachmen...92/unknown.png

JoinedSenses 06-12-2019 19:05

Re: NoSpread Menu
 
Thanks for the contribution.

Something to note: Memory management is needed for handles within sourcepawn. Each time the command is used, a new menu is created. I suggest either creating the menu during OnPluginStart and never deleting the menu, or adding a check for MenuAction_End in the menu and calling delete on the menu.

Code:

else if (action == MenuAction_End)
{
        delete menu;
}



All times are GMT -4. The time now is 16:01.

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