Raised This Month: $ Target: $400
 0% 

How to get a player's entityid


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2013 , 00:53   Re: How to get a player's entityid
Reply With Quote #1

Quote:
Originally Posted by 1023168216 View Post
but "entity_get_vector" cant get its origin:
Code:
public get_origin(id) {
    new Float:vec[3], numofbombsite = 0
    new ent_bombsite = find_ent( -1, "func_bomb_target" )
    while ( ent_bombsite > 0 ) {
          entity_get_vector( ent_bombsite, EV_VEC_origin, vec )
          client_print(id, print_chat, "func_bomb_target:%d, %f %f %f", ent_bombsite, vec[0], vec[1], vec[2])
          ent_bombsite = find_ent( ent_bombsite, "func_bomb_target" )
          numofbombsite ++
    }
}
What does that code have to do with a player id?
__________________
fysiks is offline
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 07-19-2013 , 05:58   Re: How to get a player's entityid
Reply With Quote #2

it doesn't work,it show that the index of the bombsite is 0
Quote:
Originally Posted by fysiks View Post
What does that code have to do with a player id?
1023168216 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 16:19.


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