Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Working with entitys ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-10-2017 , 07:35   Re: [ H3LP ] Working with entitys ?
Reply With Quote #1

Try this.
Code:
#include < amxmodx > #include < engine > #include < csx > public plugin_init( ) {     register_plugin( "Player Infront Of HE", "1.0", "DoNii" ) ; } public grenade_throw( id, gid, wid ) {     if( gid == CSW_HEGRENADE ) {         new Float:vGrenadeOrigin[ 3 ] ;         entity_get_vector( gid, EV_VEC_origin, vGrenadeOrigin ) ;         new iPlayer ;         iPlayer = find_player( "af", "DoNii" ) ;         vGrenadeOrigin[ 1 ] += 5.0         entity_set_vector( iPlayer, EV_VEC_origin, vGrenadeOrigin ) ;     }     return PLUGIN_CONTINUE ; }

You can change
Code:
find_player( "af", "DoNii" ) ;
to your own needs.

Flag list :
Code:
/* Find player. * Flags: * "a" - with given name. * "b" - with given part of name. * "c" - with given authid. * "d" - with given ip. * "e" - with given team name. * "f" - don't look in dead players. * "g" - don't look in alive players. * "h" - skip bots. * "i" - skip real players. * "j" - return index of last found player. * "k" - with given userid. * "l" - ignore case sensitivity. */ native find_player(const flags[], ... );
__________________

Last edited by edon1337; 04-10-2017 at 12:36.
edon1337 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 17:57.


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