AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   No Buy Menu .. Help Bus PLEASE ! (https://forums.alliedmods.net/showthread.php?t=127181)

uNy 05-17-2010 21:26

No Buy Menu .. Help Bus PLEASE !
 
Hello guys .. another deal ... i asked xPaw also to make me a plugin that restricts the buying menu for EVERYONE ! And that includes letter B , binds for Buy menu , and CFG's ... well here's the code that he gave 2 me , but i cant even compile ... help please
Also, remember 2 make for n00bs like me , tell me where to put every singel stuff :oops::mrgreen: =) .. thx so much .. and if theres something wrong with the code, or not making the requirements that i asked, edit it pleaaaase =) love u

PHP Code:


#include < amxmodx >

public plugin_init( ) {
    
register_plugin"No Buy""1.0""xPaw" );
    
    new 
iEntity find_ent_by_classFM_NULLENT"info_map_parameters" );
    
    if( !
iEntity )
        
iEntity create_entity"info_map_parameters" );
    
    
DispatchKeyValueiEntity"buying""3" );
    
DispatchSpawniEntity );



Exolent[jNr] 05-18-2010 01:10

Re: No Buy Menu .. Help Bus PLEASE !
 
PHP Code:


#include < amxmodx >
#include < engine >

public plugin_init( ) {
    
register_plugin"No Buy""1.0""xPaw" );
    
    new 
iEntity find_ent_by_class( -1"info_map_parameters" );
    
    if( !
iEntity )
        
iEntity create_entity"info_map_parameters" );
    
    
DispatchKeyValueiEntity"buying""3" );
    
DispatchSpawniEntity );



uNy 05-18-2010 07:41

Re: No Buy Menu .. Help Bus PLEASE !
 
Still, the compiler doesn't find FM_NULLENT ... error againn .. please help again xD

Exolent[jNr] 05-18-2010 19:48

Re: No Buy Menu .. Help Bus PLEASE !
 
Fixed.


All times are GMT -4. The time now is 03:42.

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