AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change to fakemeta (https://forums.alliedmods.net/showthread.php?t=87521)

One 03-13-2009 04:50

Change to fakemeta
 
Hi, i have this commands here on Cstrike & XS... but i need they on fakemeta. can anyone translate this?

i have this codes here :

PHP Code:

    if (get_option(OPTION_ENABLE_INFINITE_SMOKES) && weapon == CSW_SMOKEGRENADE)
    {
        
cs_set_user_bpammo(idCSW_SMOKEGRENADE1000)
    } 

PHP Code:

public client_disconnect(id)
{
    
cl_is_bot[id] = false
    
    mode
[id][GRENADE_EXPLOSIVE] = NADE_NORMAL
    mode
[id][GRENADE_FLASHBANG] = NADE_NORMAL
    mode
[id][GRENADE_SMOKEGREN] = NADE_NORMAL
    
    team
[id] = CS_TEAM_UNASSIGNED


PHP Code:

    if (!is_user_connected(pev(ent,pev_owner)) || is_user_connecting(pev(ent,pev_owner)) || team[pev(ent,pev_owner)] == CS_TEAM_UNASSIGNED

PHP Code:

            case CS_TEAM_Tshow_ring(origin,get_option_float(OPTION_PROXIMITY_RADIUS) * 1.5 5525500

PHP Code:

                    velocity xs_vec_len(v

PHP Code:

    switch (cs_get_user_team(id))
    {
        case 
CS_TEAM_T,CS_TEAM_CTteam[id] = cs_get_user_team(id)
        default: return 
FMRES_IGNORED
    


PHP Code:

    if (cs_get_user_shield(id)) 

PHP Code:

                xs_vec_copy(originpoint

PHP Code:

                    xs_vec_mul_scalar(normalget_option_float(OPTION_TRIP_FLY_SPEED), temp

PHP Code:

                    xs_vec_mul_scalar(normalget_option_float(OPTION_TRIP_DETECT_DISTANCE), temp)
                    
xs_vec_add(temporiginend

PHP Code:

                        xs_vec_mul_scalar(normal,400.0,temp)
                        
xs_vec_add(temp,origin,fakeend

PHP Code:

            xs_vec_copy(end,fakeend

PHP Code:

return (xs_vec_equal(velocityFloat:{0.00.00.0}) ? true false

So this all are the errors when i disable xs & cstrike includes. maybe any of this can i use in fakemeta too. idk, i need just this commands in fakemeta :cry: hope anyone can helpme

anakin_cstrike 03-13-2009 05:10

Re: Change to fakemeta
 
For bpammo:
PHP Code:

#define OFFSET_SMOKE_AMMO            389
set_pdata_intidOFFSET_SMOKE_AMMOamount ); 

And for xs, why do you want to remove it?

One 03-13-2009 05:26

Re: Change to fakemeta
 
Quote:

Originally Posted by anakin_cstrike (Post 779512)
For bpammo:
PHP Code:

#define OFFSET_SMOKE_AMMO            389
set_pdata_intidOFFSET_SMOKE_AMMOamount ); 

And for xs, why do you want to remove it?

TY

i have already :

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich> 

hase a see on my code here:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <engine>
#include <csx>
#include <xs>
#include <cstrike>
#include <fun>

http://forums.alliedmods.net/showpos...59&postcount=3

i dont wanna to use many incs :-(

Hunter-Digital 03-13-2009 05:30

Re: Change to fakemeta
 
PHP Code:

#define OFFSET_TEAM 114
enum
{
CS_TEAM_UNASSIGNED 0,
CS_TEAM_T 1,
CS_TEAM_CT 2,
CS_TEAM_SPECTATOR 3
}
 
#define fm_get_user_team(%1) get_pdata_int(%1, OFFSET_TEAM) 

I dunno about shield detection, search for a plugin that detects shields and does not use cstrike include :}

EDIT: you can remove csx, engine, cstrike and fun with some effort on turning them into fakemeta and/or ham way

anakin_cstrike 03-13-2009 06:26

Re: Change to fakemeta
 
Quote:

i dont wanna to use many incs :-(

Quote:

#include <engine>
#include <cstrike>
#include <fun>

o.O

BOYSplayCS 03-13-2009 06:53

Re: Change to fakemeta
 
You should really never run fakemeta_util, fakemeta and engine all together. There is almost ALWAYS another way to do something.

Running those three includes together can cause huge troubles.

One 03-13-2009 06:58

Re: Change to fakemeta
 
Quote:

Originally Posted by BOYSplayCS (Post 779542)
You should really never run fakemeta_util, fakemeta and engine all together. There is almost ALWAYS another way to do something.

Running those three includes together can cause huge troubles.

im now using :

  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fakemeta>
  4. #include <fakemeta_util>
  5. #include <hamsandwich>

BOYSplayCS 03-13-2009 06:58

Re: Change to fakemeta
 
That's good then, you took out the engine include.

One 03-13-2009 07:01

Re: Change to fakemeta
 
Quote:

Originally Posted by BOYSplayCS (Post 779546)
That's good then, you took out the engine include.

yeah but i cant use ma old commands :-D ( see ma first post here :-( )

BOYSplayCS 03-13-2009 07:03

Re: Change to fakemeta
 
I know there's a way to to get the team with ham.


All times are GMT -4. The time now is 09:03.

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