Raised This Month: $ Target: $400
 0% 

NEW! Avatar Mod [ CS 1.6 ] I need some help :S


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 07-28-2011 , 12:50   Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
Reply With Quote #1

remove buyzones / block

PHP Code:

#include <amxmodx>
#include <fakemeta>

new g_msgStatusIcon

public plugin_init()
{
  
g_msgStatusIcon get_user_msgid("StatusIcon");
  
register_message(g_msgStatusIcon"msgStatusIcon");
}

// Block buyzone (by ConnorMcLeod)
public msgStatusIcon(msgidmsgdestid)
{
  static 
szIcon[8];
  
get_msg_arg_string(2szIcon7);
 
  if(
equal(szIcon"buyzone") && get_msg_arg_int(1))
  {
    
set_pdata_int(id235get_pdata_int(id235) & ~(1<<0));
    return 
PLUGIN_HANDLED;
  }
 
  return 
PLUGIN_CONTINUE;

http://forums.alliedmods.net/showthread.php?p=202171 no weapon drop
__________________
Preparing to release my plugins..

Last edited by r0ck; 07-28-2011 at 12:56.
r0ck is offline
eXtrem
Member
Join Date: Jul 2011
Old 07-28-2011 , 13:15   Re: NEW! Avatar Mod [ CS 1.6 ] I need some help :S
Reply With Quote #2

Removing buyzone :

Code:
#include < amxmodx > #include < engine > #include < fakemeta > new const info_map_parameters[ ] = "info_map_parameters"; new g_hSpawn; public plugin_precache( ) {     new iEntity = create_entity( info_map_parameters );     DispatchKeyValue( iEntity, "buying", "3" );     DispatchSpawn( iEntity );         g_hSpawn = register_forward( FM_Spawn, "FwdSpawn" ); } public FwdSpawn( iEntity ) {     static szClassname[ 32 ];     entity_get_string( iEntity, EV_SZ_classname, szClassname, 31 );         if( equal( szClassname, info_map_parameters ) )     {         remove_entity( iEntity );                 return FMRES_SUPERCEDE;     }         return FMRES_IGNORED; } public plugin_init( ) {     if( g_hSpawn > 0 )     {         unregister_forward( FM_Spawn, g_hSpawn );     } }
eXtrem is offline
Reply



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 01:10.


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