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

Wall Shot...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 12-06-2013 , 00:23   Wall Shot...
Reply With Quote #1

i creating a xp plugin i want to set a xp if player kill someone from wall.....
__________________
All my work is here
xxxperts is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-06-2013 , 00:54   Re: Wall Shot...
Reply With Quote #2

This is nice.
If you have any question, you can ask in this forum.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 12-09-2013 , 07:37   Re: Wall Shot...
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
This is nice.
If you have any question, you can ask in this forum.
Lol xD
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 12-11-2013 , 08:03   Re: Wall Shot...
Reply With Quote #4

Traceline ??

On EventDeathMsg()
Get the Killers Origin and Victims Origin,

PHP Code:
if( is_wall_between_pointskOvO0) )
{
       ....
// Wall Kill

PHP Code:
stock is_wall_between_points(Float:start[3], Float:end[3], ignore_ent

    
// Create the trace handle! It is best to create it! 
    
new ptr create_tr2() 
     
    
// The main traceline function! 
    // This function ignores GLASS and MISSILE ! 
    // Here is an example of how you should combine all the flags! 
    
engfunc(EngFunc_TraceLinestartendIGNORE_GLASS IGNORE_MISSILEignore_entptr
     
    
// We are interested in the fraction parameter 
    
new fraction 
    get_tr2
(ptrTR_flFractionfraction
     
    
// Free the trace handle (don't forget to do this!) 
    
free_tr2(ptr
     
    
// If = 1.0 then it didn't hit anything! 
    
return (fraction != 1.0

Link to original stock

OR

Use EngFunc_CheckVisibility
from here.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 12-11-2013 at 08:14.
Shooting King is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-11-2013 , 13:18   Re: Wall Shot...
Reply With Quote #5

TraceLine is the old method

Use TraceAttack, it is more efficient.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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:30.


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