Raised This Month: $32 Target: $400
 8% 

Golden AK 47


Post New Thread Reply   
 
Thread Tools Display Modes
thread-count
New Member
Join Date: Nov 2009
Old 11-18-2009 , 08:14   Re: Golden AK 47
Reply With Quote #21

hey dude i have a golden m4a1 model i tried to make a plugin but iy sorta didn't work if u could make a plugin with golden m4 i would be glad 2 send the models 2 ya
thread-count is offline
visje
New Member
Join Date: Nov 2009
Location: Netherlands
Old 11-23-2009 , 14:55   Re: Golden AK 47
Reply With Quote #22

How do i install this plugin?

In my amxmodx/configs/plugins.ini i wrote at the bottom: GoldenAk.amxx

I unzipped the models (2) in the cstrike/models

I put the GoldenAk.amxx in the plugins directory

What am i doeing wrong? cause when i'm in game on my server as admin logged in. And type: amx_goldenak <myname> it says: Unknown Command
visje is offline
Red_Devil
Junior Member
Join Date: Nov 2009
Old 11-26-2009 , 06:56   Re: Golden AK 47
Reply With Quote #23

thats a nice add for a fun server , good work
__________________
The Nš1 CS 1.6 FULL hack EUphoria Ultimate MODdification

Red_Devil is offline
AceOfHarts
Junior Member
Join Date: Oct 2009
Old 12-01-2009 , 10:04   Re: Golden AK 47
Reply With Quote #24

Quote:
Originally Posted by visje View Post
How do i install this plugin?

In my amxmodx/configs/plugins.ini i wrote at the bottom: GoldenAk.amxx

I unzipped the models (2) in the cstrike/models

I put the GoldenAk.amxx in the plugins directory

What am i doeing wrong? cause when i'm in game on my server as admin logged in. And type: amx_goldenak <myname> it says: Unknown Command
mine same as urs... any requirements? AMX version?
AceOfHarts is offline
Old 12-04-2009, 11:05
laziboi72
This message has been deleted by laziboi72. Reason: forget it
Old 12-06-2009, 15:15
laziboi72
This message has been deleted by laziboi72. Reason: i regret posting on this bad thread =(
qpalzm12343
Member
Join Date: Mar 2009
Old 12-22-2009 , 04:00   Re: Golden AK 47
Reply With Quote #25

Oh yeah I making my custom-weapon based on your plugin.
useful your zoom function to make custom aug...
Sorry for my bad english.. i learning enlish but i luv cs
+Karma
qpalzm12343 is offline
qpalzm12343
Member
Join Date: Mar 2009
Old 12-22-2009 , 04:03   Re: Golden AK 47
Reply With Quote #26

Quote:
Originally Posted by laziboi72 View Post
+karma nice
could you add more weapons maybe?
So you just rescripting and compile.
That's too easy!
qpalzm12343 is offline
Old 12-22-2009, 12:33
laziboi72
This message has been deleted by laziboi72. Reason: Too hard
Old 12-22-2009, 22:20
qpalzm12343
This message has been deleted by qpalzm12343. Reason: that's sux
Old 12-22-2009, 22:35
qpalzm12343
This message has been deleted by qpalzm12343.
qpalzm12343
Member
Join Date: Mar 2009
Old 12-22-2009 , 22:46   Re: Golden AK 47
Reply With Quote #27

Quote:
Originally Posted by laziboi72 View Post
its actually very hard to re-do the plugin
because i'm making a menu for many weapons and the weapons will be shooting lightning and fireballs =P
if its too easy then you try...
yeah i made Power-deagle
but i need weapon menu
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#include <amxmisc>

#define is_valid_player(%1) (1 <= %1 <= 32)
new Dg_V_MODEL[64] = "models/v_pdeagle.mdl"
new Dg_P_MODEL[64] = "models/p_pdeagle.mdl"
/* Pcvars */
new cvar_dmgmultipliercvar_goldbullets,  cvar_custommodelcvar_uclipcvar_cost
new bool:g_HasDG[33]
new 
bullets33 ]
// Sprite
new m_spriteTexture
const Wep_deagle = ((1<<CSW_DEAGLE))
public 
plugin_init()
{
 
 
/* CVARS */
 
cvar_dmgmultiplier register_cvar("pdeagle_dmg_multiplier""5")
 
cvar_custommodel register_cvar("pdeagle_custom_model""1")
 
cvar_goldbullets register_cvar("pdeagle_gold_bullets""1")
 
cvar_uclip register_cvar("pdeagle_unlimited_clip""1")
 
cvar_cost register_cvar("pdeagle_cost""3000")
 
 
// Register The Buy Cmd
 
register_clcmd("say /pdeagle""CmdBuyAk")
 
register_clcmd("say_team /pdeagle""CmdBuyAk")
 
register_concmd("amx_pdeagle""CmdGiveAk"ADMIN_BAN"<name>")
 
 
// Register The Plugin
 
register_plugin("Power Deagle""1.0""AlejandroSk")
 
// Death Msg
 
register_event("DeathMsg""Death""a")
 
// Weapon Pick Up
 
register_event("WeapPickup","checkModel","b","1=19")
 
// Current Weapon Event
 
register_event("CurWeapon","checkWeapon","be","1=1")
 
register_event("CurWeapon""make_tracer""be""1=1""3>0")
 
// Ham TakeDamage
 
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
 
register_forwardFM_CmdStart"fw_CmdStart" )
 
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
 
}
public 
client_connect(id)
{
 
g_HasDG[id] = false
}
public 
client_disconnect(id)
{
 
g_HasDG[id] = false
}
public 
Death()
{
 
g_HasDG[read_data(2)] = false
}
public 
fwHamPlayerSpawnPost(id)
{
 
g_HasDG[id] = false
}
public 
plugin_precache()
{
 
precache_model(Dg_V_MODEL)
 
precache_model(Dg_P_MODEL)
 
m_spriteTexture precache_model("sprites/dot.spr")
}
public 
checkModel(id)
{
 if ( !
g_HasDG[id] )
  return 
PLUGIN_HANDLED
 
 
new szWeapID read_data(2)
 
 if ( 
szWeapID == CSW_DEAGLE && g_HasDG[id] == true && get_pcvar_num(cvar_custommodel) )
 {
  
set_pev(idpev_viewmodel2Dg_V_MODEL)
  
set_pev(idpev_weaponmodel2Dg_P_MODEL)
 }
 return 
PLUGIN_HANDLED
}
public 
checkWeapon(id)
{
 new 
plrClipplrAmmoplrWeap[32]
 new 
plrWeapId
 
 plrWeapId 
get_user_weapon(idplrClip plrAmmo)
 
 if (
plrWeapId == CSW_DEAGLE && g_HasDG[id])
 {
  
checkModel(id)
 }
 else 
 {
  return 
PLUGIN_CONTINUE
 
}
 
 if (
plrClip == && get_pcvar_num(cvar_uclip))
 {
  
// If the user is out of ammo..
  
get_weaponname(plrWeapIdplrWeap31)
  
// Get the name of their weapon
  
give_item(idplrWeap)
  
engclient_cmd(idplrWeap
  
engclient_cmd(idplrWeap)
  
engclient_cmd(idplrWeap)
 }
 return 
PLUGIN_HANDLED
}
 
public 
fw_TakeDamage(victiminflictorattackerFloat:damage)
{
 if ( 
is_valid_playerattacker ) && get_user_weapon(attacker) == CSW_DEAGLE && g_HasDG[attacker] )
 {
  
SetHamParamFloat(4damage get_pcvar_floatcvar_dmgmultiplier ) )
 }
}
public 
make_tracer(id)
{
 if (
get_pcvar_num(cvar_goldbullets))
 {
  new 
clip,ammo
  
new wpnid get_user_weapon(id,clip,ammo)
  new 
pteam[16]
  
  
get_user_team(idpteam15)
  
  if ((
bullets[id] > clip) && (wpnid == CSW_DEAGLE) && g_HasDG[id]) 
  {
   new 
vec1[3], vec2[3]
   
get_user_origin(idvec11// origin; your camera point.
   
get_user_origin(idvec24// termina; where your bullet goes (4 is cs-only)
   
   
   //BEAMENTPOINTS
   
message_beginMSG_BROADCAST,SVC_TEMPENTITY)
   
write_byte (0)     //TE_BEAMENTPOINTS 0
   
write_coord(vec1[0])
   
write_coord(vec1[1])
   
write_coord(vec1[2])
   
write_coord(vec2[0])
   
write_coord(vec2[1])
   
write_coord(vec2[2])
   
write_shortm_spriteTexture )
   
write_byte(1// framestart
   
write_byte(5// framerate
   
write_byte(2// life
   
write_byte(10// width
   
write_byte(0// noise
   
write_byte255 )     // r, g, b
   
write_byte215 )       // r, g, b
   
write_byte)       // r, g, b
   
write_byte(200// brightness
   
write_byte(150// speed
   
message_end()
  }
  
  
bullets[id] = clip
 
}
 
}
public 
CmdBuyDg(id)
{
 if ( !
is_user_alive(id) )
 {
  
client_print(id,print_chat"You have to alive to buy Power-Deagle")
  return 
PLUGIN_HANDLED
 
}
 
 new 
money cs_get_user_money(id)
 
 if (
money >= get_pcvar_num(cvar_cost))
 {
  
cs_set_user_money(idmoney get_pcvar_num(cvar_cost))
  
give_item(id"weapon_deagle")
  
g_HasDG[id] = true
 
}
 
 else
 {
  
client_print(idprint_chat"#Cstrike_TitlesTXT_Not_Enough_Money"get_pcvar_num(cvar_cost))
 }
 return 
PLUGIN_HANDLED
}
public 
CmdGiveDg(id,level,cid)
{
 if (!
cmd_access(id,level,cid,2))
  return 
PLUGIN_HANDLED;
 new 
arg[32];
 
read_argv(1,arg,31);
 
 new 
player cmd_target(id,arg,7);
 if (!
player
  return 
PLUGIN_HANDLED;
 
 new 
name[32];
 
get_user_name(player,name,31);
 
 
give_item(player"weapon_DEAGLE")
 
g_HasDG[player] = true
 
 
return PLUGIN_HANDLED
}
stock drop_prim(id
{
 new 
weapons[32], num
 get_user_weapons
(idweaponsnum)
 for (new 
0numi++) {
  if (
Wep_ak47 & (1<<weapons[i])) 
  {
   static 
wname[32]
   
get_weaponname(weapons[i], wnamesizeof wname 1)
   
engclient_cmd(id"drop"wname)
  }
 }

qpalzm12343 is offline
Old 12-23-2009, 12:21
laziboi72
This message has been deleted by laziboi72. Reason: no
qpalzm12343
Member
Join Date: Mar 2009
Old 12-23-2009 , 21:03   Re: Golden AK 47
Reply With Quote #28

Quote:
Originally Posted by laziboi72 View Post
thats really good =)
can you teach me how to multiply damage? thanks
maybe it's in the cvars
qpalzm12343 is offline
Old 12-23-2009, 22:11
laziboi72
This message has been deleted by laziboi72. Reason: finished my plugin
qpalzm12343
Member
Join Date: Mar 2009
Old 12-24-2009 , 00:09   Re: Golden AK 47
Reply With Quote #29

Quote:
Originally Posted by laziboi72 View Post
nvm i got it
That's good by the way did you complete weapons menu??
qpalzm12343 is offline
Old 12-24-2009, 14:36
laziboi72
This message has been deleted by laziboi72. Reason: forget it
Paw
New Member
Join Date: Jan 2010
Old 01-05-2010 , 00:51   Re: Golden AK 47
Reply With Quote #30

the damage multiplier in how much times the damage is multiplied..
I mean I want to make it do damage like a normal AK.. do i set goldenak_dmg_multiplier to 0 or 1
Paw 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 15:34.


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