AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Show where shoted at (https://forums.alliedmods.net/showthread.php?t=207275)

Anonymouz 01-31-2013 20:55

Show where shoted at
 
Hi there, i want a code that print in chat/hud a text with info (where i atacked)..it is like the stats plugin..

fysiks 02-01-2013 00:46

Re: Show where shoted at
 
What do you mean by "where"?

jimaway 02-01-2013 10:00

Re: Show where shoted at
 
Code:

/* Function is called after player to player attacks ,
* if players were damaged by teammate TA is set to 1 */
forward client_damage(attacker,victim,damage,wpnindex,hitplace,TA);

in csx.inc

Code:

/* Parts of body for hits */
#define HIT_GENERIC                0        /* none */
#define HIT_HEAD                1
#define HIT_CHEST                2
#define HIT_STOMACH                3
#define HIT_LEFTARM                4
#define HIT_RIGHTARM                5
#define HIT_LEFTLEG                6
#define HIT_RIGHTLEG                7


Anonymouz 02-01-2013 10:29

Re: Show where shoted at
 
Quote:

Originally Posted by jimaway (Post 1884675)
Code:

/* Function is called after player to player attacks ,
* if players were damaged by teammate TA is set to 1 */
forward client_damage(attacker,victim,damage,wpnindex,hitplace,TA);

in csx.inc

Code:

/* Parts of body for hits */
#define HIT_GENERIC                0        /* none */
#define HIT_HEAD                1
#define HIT_CHEST                2
#define HIT_STOMACH                3
#define HIT_LEFTARM                4
#define HIT_RIGHTARM                5
#define HIT_LEFTLEG                6
#define HIT_RIGHTLEG                7


This one may be! But how to make the plugin, i don't know amx, im new.

P1raten 02-01-2013 12:50

Re: Show where shoted at
 
Quote:

Originally Posted by Anonymouz (Post 1884702)
This one may be! But how to make the plugin, i don't know amx, im new.

Then this is the wrong section for this thread.

Go to request forum.

fysiks 02-01-2013 23:18

Re: Show where shoted at
 
Quote:

Originally Posted by Anonymouz (Post 1884702)
This one may be! But how to make the plugin, i don't know amx, im new.

If you want to learn you need to start reading and trying things. It is not recommended to start with a plugin this complicated for a first project. So, if you still wan to code it, you need to do A LOT of reading and testing to create your own plugin.

If you want someone else to create it for you, you need to post in the Suggestions/Requests section.

Anonymouz 02-03-2013 01:49

Re: Show where shoted at
 
Quote:

Originally Posted by fysiks (Post 1885240)
If you want to learn you need to start reading and trying things. It is not recommended to start with a plugin this complicated for a first project. So, if you still wan to code it, you need to do A LOT of reading and testing to create your own plugin.

If you want someone else to create it for you, you need to post in the Suggestions/Requests section.

Okay, thanks.


All times are GMT -4. The time now is 20:31.

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