diffrent origins from a file
i need a way to pick out an origin from a file, and use it in set_user_origin(id, Origin), so it needs to be a diffrent origin/origin on the next line for every time. how do i do that? and are there a better way then set_user_origin?
cheers |
Re: diffrent origins from a file
http://forums.alliedmods.net/showthread.php?t=46218
With FM pev_origin |
Re: diffrent origins from a file
Quote:
file_size http://www.amxmodx.org/funcwiki.php?go=func&id=91 read_file http://www.amxmodx.org/funcwiki.php?go=func&id=87 Use fm_set_user_origin(id, fOrigin) to set a players origin and pev(id,pev_origin,fOrigin) to get an origin. new Float:fOrigin[3] is the type needed to get\set origins with fakemeta as it uses floats and not integers like get\set origin does. Remember that before using the origin read from file, it must be converted to a float array containing the 3 origin coordinates (x,y,z). |
Re: diffrent origins from a file
thanks!
so something like: PHP Code:
|
Re: diffrent origins from a file
Quote:
PHP Code:
|
Re: diffrent origins from a file
Don't use read_file, use "new" file natives.
|
Re: diffrent origins from a file
fopen, fgets, feof, etc..
|
Re: diffrent origins from a file
Like this:
yourfile.txt: Code:
0 0 0Code:
|
Re: diffrent origins from a file
thanks!
|
| All times are GMT -4. The time now is 16:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.