Raised This Month: $ Target: $400
 0% 

Why it does not work?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shoki123
Senior Member
Join Date: Apr 2011
Old 10-17-2011 , 07:24   Why it does not work?
Reply With Quote #1

Hi i have bug in i say /buydildo is not give me this and i have the monye for this ..
help Please

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <cstrike>
new PLUGIN_NAME[] = "Dildo"
new PLUGIN_VERSION[] =  "1.1"
new PLUGIN_AUTHOR[] = "10$74|2$"
new bool:g_Dildo[33]
public 
plugin_init() 
{
 
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
 
register_event("CurWeapon""Event_CurWeaponq""be""1=1")
 
register_event("Damage""Event_Damage""be""2!0")
 
register_event("DeathMsg""Event_Death""a")
 
register_forward(FM_EmitSound"EmitSound1")
 
register_clcmd("say /buydildo""cmdBuy1")
}
public 
plugin_precache()
{
 
precache_model("models/p_dildo.mdl")
 
precache_model("models/v_dildo.mdl")
 
precache_sound("dildo/dildo_hit1.wav")
 
precache_sound("dildo/dildo_hit2.wav")
 
precache_sound("dildo/dildo_hit3.wav")
 
precache_sound("dildo/dildo_hit4.wav")
 
precache_sound("dildo/dildo_hitwall.wav")
}
public 
client_connect(idg_Dildo[id] = false
public Event_Death() g_Dildo[read_data(2)] = false
public cmdBuy1(id)
{
 new 
Cost 100Money cs_get_user_money(id)
 if(!
is_user_alive(id))
  
client_print(idprint_chat"Sorry, You need to be alive")
 else if(
Money Cost)
  
client_print(idprint_chat"Sorry, You need %d to buy"Cost)
 else if(
g_Dildo[id])
  
client_print(idprint_chat"Sorry, You already bought a Dildo")
 else
 {
  
g_Dildo[id] = true
  cs_set_user_money
(idMoney Cost)
  
client_print(idprint_chat"You paid a crackhead for a Dildo")
 }
 return 
PLUGIN_HANDLED
}
public 
Event_CurWeaponq(id)
{
 if(!
is_user_alive(id) || !is_user_connected(id)) 
  return 
PLUGIN_CONTINUE
  
 
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
 if(
weapon == CSW_KNIFE)
 {
  if(
g_Dildo[id])
  {
   
entity_set_string(idEV_SZ_viewmodel"models/v_dildo.mdl")
   
entity_set_string(idEV_SZ_weaponmodel"models/p_dildo.mdl");
  }
 }
 return 
PLUGIN_CONTINUE
}
public 
EmitSound1(idchannelsample[])
{
 if(!
is_user_alive(id) || !is_user_connected(id)) 
  return 
FMRES_IGNORED
 
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
 if(
weapon == CSW_KNIFE)
 {
  if(
g_Dildo[id])
  {
   if(
equal(sample,"dildo/dildo_hit1.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"dildo/dildo_hit1.wav"1.0ATTN_NORM0PITCH_NORM)
    return 
FMRES_SUPERCEDE
   
}
   else if(
equal(sample,"dildo/dildo_hit2.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"dildo/dildo_hit1.wav"1.0ATTN_NORM0PITCH_NORM
    return 
FMRES_SUPERCEDE
   
}
   else if(
equal(sample,"dildo/dildo_hit1.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"dildo/dildo_hit1.wav"1.0ATTN_NORM0PITCH_NORM
    return 
FMRES_SUPERCEDE
   
}
   else if(
equal(sample,"dildo/dildo_hit4.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"dildo/dildo_hit4.wav"1.0ATTN_NORM0PITCH_NORM)
    return 
FMRES_SUPERCEDE
   
}
   else if(
equal(sample,"dildo/dildo_hitwall.wav")) 
   {
    
emit_sound(idCHAN_WEAPON"dildo/dildo_hitwall.wav"1.0ATTN_NORM0PITCH_NORM
    return 
FMRES_SUPERCEDE
   
}
  }
 }
 return 
FMRES_IGNORED

shoki123 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-17-2011 , 09:29   Re: Why it does not work?
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <cstrike>

new PLUGIN_NAME[] = "Dildo"
new PLUGIN_VERSION[] =  "1.1"
new PLUGIN_AUTHOR[] = "10$74|2$"

new bool:g_Dildo[33]

public 
plugin_init() 
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
    
register_event("CurWeapon""Event_CurWeaponq""be""1=1")
    
register_event("Damage""Event_Damage""be""2!0")
    
register_event("DeathMsg""Event_Death""a")
    
register_forward(FM_EmitSound"EmitSound1")
    
register_clcmd("say /buydildo""cmdBuy1")
}
public 
plugin_precache()
{
    
precache_model("models/p_dildo.mdl")
    
precache_model("models/v_dildo.mdl")
    
precache_sound("dildo/dildo_hit1.wav")
    
precache_sound("dildo/dildo_hit2.wav")
    
precache_sound("dildo/dildo_hit3.wav")
    
precache_sound("dildo/dildo_hit4.wav")
    
precache_sound("dildo/dildo_hitwall.wav")
}
public 
client_disconnect(id
{
    
g_Dildo[id] = false
}
public 
Event_Death()
{
    
g_Dildo[read_data(2)] = false
}
public 
cmdBuy1(id)
{
    new 
Cost 100Money cs_get_user_money(id)
    if(!
is_user_alive(id))
        
client_print(idprint_chat"Sorry, You need to be alive")
    else if(
Money Cost)
        
client_print(idprint_chat"Sorry, You need %d to buy"Cost)
    else if(
g_Dildo[id])
        
client_print(idprint_chat"Sorry, You already bought a Dildo")
    else
    {
        
g_Dildo[id] = true
        cs_set_user_money
(idMoney Cost)
        
client_print(idprint_chat"You paid a crackhead for a Dildo")
        
entity_set_string(idEV_SZ_viewmodel"models/v_dildo.mdl")
        
entity_set_string(idEV_SZ_weaponmodel"models/p_dildo.mdl")
    }
    return 
PLUGIN_HANDLED
}
public 
Event_CurWeaponq(id)
{
    if(!
is_user_alive(id) || !is_user_connected(id)) 
        return 
PLUGIN_CONTINUE
    
    
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
    if(
weapon == CSW_KNIFE)
    {
        if(
g_Dildo[id])
        {
            
entity_set_string(idEV_SZ_viewmodel"models/v_dildo.mdl")
            
entity_set_string(idEV_SZ_weaponmodel"models/p_dildo.mdl");
        }
    }
    return 
PLUGIN_CONTINUE
}
public 
EmitSound1(idchannelsample[])
{
    if(!
is_user_alive(id) || !is_user_connected(id)) 
        return 
FMRES_IGNORED
    
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
    if(
weapon == CSW_KNIFE)
    {
        if(
g_Dildo[id])
        {
            if(
equal(sample,"dildo/dildo_hit1.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"dildo/dildo_hit1.wav"1.0ATTN_NORM0PITCH_NORM)
                return 
FMRES_SUPERCEDE
            
}
            else if(
equal(sample,"dildo/dildo_hit2.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"dildo/dildo_hit1.wav"1.0ATTN_NORM0PITCH_NORM
                return 
FMRES_SUPERCEDE
            
}
            else if(
equal(sample,"dildo/dildo_hit1.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"dildo/dildo_hit1.wav"1.0ATTN_NORM0PITCH_NORM
                return 
FMRES_SUPERCEDE
            
}
            else if(
equal(sample,"dildo/dildo_hit4.wav"))
            {
                
emit_sound(idCHAN_WEAPON"dildo/dildo_hit4.wav"1.0ATTN_NORM0PITCH_NORM)
                return 
FMRES_SUPERCEDE
            
}
            else if(
equal(sample,"dildo/dildo_hitwall.wav")) 
            {
                
emit_sound(idCHAN_WEAPON"dildo/dildo_hitwall.wav"1.0ATTN_NORM0PITCH_NORM
                return 
FMRES_SUPERCEDE
            
}
        }
    }
    return 
FMRES_IGNORED

Try this.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
BunnYboiii
Senior Member
Join Date: Jul 2011
Old 10-17-2011 , 10:44   Re: Why it does not work?
Reply With Quote #3

Hahahaha wtf?

Dildo knife? hahaha ;)
__________________
School sucks, so much work.
BunnYboiii is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2011 , 18:54   Re: Why it does not work?
Reply With Quote #4

IIRC this plugin has been banned from this website.
__________________
fysiks 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 19:48.


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