Raised This Month: $51 Target: $400
 12% 

[L4D2] Special Ammo Awards


Post New Thread Reply   
 
Thread Tools Display Modes
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 02-05-2010 , 11:02   Re: [L4D2] Special Ammo Awards
Reply With Quote #21

Quote:
Originally Posted by hayashi316 View Post
You mean like this?

CheatCommand(client, "upgrade_add", "INCENDIARY_AMMO");
CheatCommand(client, "z_spawn", "smoker auto");
SetSpecialAmmoInPlayerGun(client, GetConVarInt(SpecialAmmoAmount));

Or Should I write some C++Languages instead of it?
If so,pleas tell me the form

By the way,can it be like this?

CheatCommand(client, "upgrade_add", "INCENDIARY_AMMO");
CheatCommand(client, "z_spawn", "smoker auto");
CheatCommand(client, "z_spawn", "boomer auto");
CheatCommand(client, "z_spawn", "witch auto");
……
SetSpecialAmmoInPlayerGun(client, GetConVarInt(SpecialAmmoAmount));

Thank you
More like that.
AtomicStryker is offline
hayashi316
Junior Member
Join Date: Feb 2010
Old 02-05-2010 , 13:27   Re: [L4D2] Special Ammo Awards
Reply With Quote #22

It works~But there's a new problem,when I write it as below:
if(IsClientInGame(client && GetClientTeam(client)==2))
{
decl String:ammotype[64];
new luck = GetRandomInt(1,7); // wee randomness!!
switch(luck)
{
case 1:
{
CheatCommand(client,"z_spawn", "smoker auto");

}

case 2:
{
CheatCommand(client,"z_spawn", "hunter auto");

}

case 3:
{
CheatCommand(client,"z_spawn", "Charger auto");

}

case 4:
{
CheatCommand(client,"z_spawn", "boomer auto");

}

case 5:
{
CheatCommand(client,"z_spawn", "spitter auto");

}

case 6:
{
CheatCommand(client,"z_spawn", "jockey auto");

}

case 7:
{
CheatCommand(client,"z_spawn", "witch auto");

}

}
PrintToChatAll("\x04%N\x01 won %s ammo for killing %d Infected!",client, ammotype, killcount[client]);

if some players join my Ser. and when they leave,the Chatwindow stopped counting the kill,and of course, all the effects disappeared.

Is there any way to fix it?
hayashi316 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 02-05-2010 , 16:31   Re: [L4D2] Special Ammo Awards
Reply With Quote #23

Ive added a new version to add some resetting on (dis)connects and roundends
AtomicStryker is offline
hayashi316
Junior Member
Join Date: Feb 2010
Old 02-06-2010 , 02:50   Re: [L4D2] Special Ammo Awards
Reply With Quote #24

L 11/23/2009 - 036:09: [SM] Native "IsClientInGame" reported: Client index 0 is invalid
L 11/23/2009 - 036:10: [SM] Displaying call stack trace for plugin "l4d2_specialammo.smx":
L 11/23/2009 - 036:10: [SM] [0] Line 196, /home/groups/sourcemod/upload_tmp/phpyHy6uE.sp::KillCountUpgrade()

I used your new plugin,but the same problem sitll exists as above.
hayashi316 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 02-06-2010 , 05:28   Re: [L4D2] Special Ammo Awards
Reply With Quote #25

EDIT:

Actually it seems there was a bracket error in the code. Please re-download and retry.

Last edited by AtomicStryker; 02-06-2010 at 05:31.
AtomicStryker is offline
Blakeocity
Senior Member
Join Date: Nov 2009
Old 03-08-2010 , 01:34   Re: [L4D2] Special Ammo Awards
Reply With Quote #26

Can you get the DumDum shooting animation effect to stop when the amount of rounds given ends?

It's confusing to think that someone still has the rounds because the effect is still appearing whenever the person shoots.

edit: Odd, it isn't happening now. Sorry.

Great plugin as usual.

Last edited by Blakeocity; 03-09-2010 at 05:16.
Blakeocity is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 03-26-2010 , 11:17   Re: [L4D2] Special Ammo Awards
Reply With Quote #27

if i only wan the dum dum ammo but not the other 2 how do i do that?
ghosthunterfool is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 03-26-2010 , 11:24   Re: [L4D2] Special Ammo Awards
Reply With Quote #28

Quick and dirty way would be to change

PHP Code:
new luck GetRandomInt(1,3); // wee randomness!! 
to

PHP Code:
 new luck 1
AtomicStryker is offline
Blakeocity
Senior Member
Join Date: Nov 2009
Old 03-26-2010 , 11:49   Re: [L4D2] Special Ammo Awards
Reply With Quote #29

Can you stop the "You've Run Out of DumDum Ammo!" chat message spamming if you run out of ammo while shooting?

The message pops up 5-10 times depending on the gun and how much your shooting, can it be set so that it only appears once?

Just nitpicking really.
Blakeocity is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 03-26-2010 , 13:51   Re: [L4D2] Special Ammo Awards
Reply With Quote #30

Done
AtomicStryker 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 06:59.


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