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

Grenade Headshot Award


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OmgKhalifa
Member
Join Date: Aug 2018
Location: Marijuana Land
Old 09-25-2019 , 02:33   Grenade Headshot Award
Reply With Quote #1

Hello i am requesting a small coded plugin that when you get 2 headshots you will receive a hegrenade and a print chat message saying +1 Grenade for killing %s (player name) with a headshot!
i would also like a quick blue screenfade on the player who received a grenade for the headshot kill please make the screenfade not have big brightness i do not want the screenfade to get annoying.

also please add a check if the player already has a grenade. the print chat message, screenfade & awarded grenade will not be shown/given.
__________________
OmgKhalifa is offline
HiDeath
Senior Member
Join Date: Aug 2018
Location: Tunisia
Old 09-25-2019 , 03:53   Re: Grenade Headshot Award
Reply With Quote #2

I like the idea, tho I can't create such one, let's hope someone does
__________________
Avoid cs 1.6 no steam, use the steam version clean full & original
HiDeath is offline
OmgKhalifa
Member
Join Date: Aug 2018
Location: Marijuana Land
Old 09-25-2019 , 03:55   Re: Grenade Headshot Award
Reply With Quote #3

Quote:
Originally Posted by HiDeath View Post
I like the idea, tho I can't create such one, let's hope someone does
Thank you kind sir. You would be amazed at some of the plugins i have from my crazy ideas. this is just something simple it's cool for CSDM
__________________
OmgKhalifa is offline
bad_boy
Member
Join Date: Oct 2018
Old 09-25-2019 , 10:08   Re: Grenade Headshot Award
Reply With Quote #4

I hope you like it.
Attached Files
File Type: inc screenfade_util.inc (2.0 KB, 84 views)
File Type: sma Get Plugin or Get Source (headshot.sma - 238 views - 1.2 KB)

Last edited by bad_boy; 09-25-2019 at 12:45.
bad_boy is offline
HiDeath
Senior Member
Join Date: Aug 2018
Location: Tunisia
Old 10-13-2019 , 12:55   Re: Grenade Headshot Award
Reply With Quote #5

Quote:
Originally Posted by bad_boy View Post
I hope you like it.
Good one
__________________
Avoid cs 1.6 no steam, use the steam version clean full & original
HiDeath is offline
OmgKhalifa
Member
Join Date: Aug 2018
Location: Marijuana Land
Old 10-25-2019 , 11:34   Re: Grenade Headshot Award
Reply With Quote #6

Quote:
Originally Posted by bad_boy View Post
I hope you like it.
Indeed plugin works fine thank you.
__________________
OmgKhalifa is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 10-25-2019 , 17:53   Re: Grenade Headshot Award
Reply With Quote #7

Quote:
Originally Posted by bad_boy View Post
I hope you like it.
This looks awesome!

I just can't get it to compile I'm running amxmodx 1.9 also placed .inc in folder.

//// headshot.sma
//
//headshot.sma(39) : error 001: expected token: ",", but found "-identifier-"
//headshot.sma(39) : warning 215: expression has no effect
//headshot.sma(39) : error 001: expected token: ";", but found ")"
//headshot.sma(39) : error 029: invalid expression, assumed zero
//headshot.sma(39) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// headshot.amx (compile failed).
//
// Compilation Time: 0.2 sec
// ----------------------------------------
iclassdon is offline
Send a message via MSN to iclassdon
bad_boy
Member
Join Date: Oct 2018
Old 10-25-2019 , 18:53   Re: Grenade Headshot Award
Reply With Quote #8

Quote:
Originally Posted by HiDeath View Post
Good one
Thanks

Quote:
Originally Posted by OmgKhalifa View Post
Indeed plugin works fine thank you.
Thanks. I'm glad you like it.

Quote:
Originally Posted by iclassdon View Post
This looks awesome!

I just can't get it to compile I'm running amxmodx 1.9 also placed .inc in folder.

//// headshot.sma
//
//headshot.sma(39) : error 001: expected token: ",", but found "-identifier-"
//headshot.sma(39) : warning 215: expression has no effect
//headshot.sma(39) : error 001: expected token: ";", but found ")"
//headshot.sma(39) : error 029: invalid expression, assumed zero
//headshot.sma(39) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// headshot.amx (compile failed).
//
// Compilation Time: 0.2 sec
// ----------------------------------------
You must be trying to compile it with a older version, try compiling it with version 1.9.

Last edited by bad_boy; 10-25-2019 at 20:23.
bad_boy is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-25-2019 , 20:39   Re: Grenade Headshot Award
Reply With Quote #9

Quote:
Originally Posted by bad_boy View Post
Thanks


Thanks. I'm glad you like it.


You must be trying to compile it with a older version, try compiling it with version 1.9.
No, he's correct there's a error.

PHP Code:
client_printiKillerprint_chat"+1 Grenade for killing %s with a headshot!" Name 


PHP Code:
client_printiKillerprint_chat"+1 Grenade for killing %s with a headshot!"Name 
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 10-26-2019 , 10:40   Re: Grenade Headshot Award
Reply With Quote #10

BTW that was the fix iceeedr thanks! The missing ","

Last edited by iclassdon; 10-26-2019 at 14:04.
iclassdon is offline
Send a message via MSN to iclassdon
Reply


Thread Tools
Display Modes

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:35.


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