AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   strip_user_weapons() fakemeta way (https://forums.alliedmods.net/showthread.php?t=120234)

Flipper_SPb 03-02-2010 08:52

strip_user_weapons() fakemeta way
 
I can't find how to do this..
Can you help?

Arkshine 03-02-2010 08:54

Re: strip_user_weapons() fakemeta way
 
Fun is fine, use fun way.

Flipper_SPb 03-02-2010 09:02

Re: strip_user_weapons() fakemeta way
 
Ok. Thanks.
I use <fun> only for strip_user_weapons() and spawn().
spawn() bettter than DLLFunc_Spawn ?

Arkshine 03-02-2010 09:17

Re: strip_user_weapons() fakemeta way
 
Don't use spawn(). Either use Ham_CS_RoundSpawn either pev_deadflag (DEAD_RESPAWNABLE) + DLLFunc_Think

Flipper_SPb 03-02-2010 09:30

Re: strip_user_weapons() fakemeta way
 
I make a plugin for Half-Life

Arkshine 03-02-2010 09:31

Re: strip_user_weapons() fakemeta way
 
Use the second way so.

Flipper_SPb 03-02-2010 09:35

Re: strip_user_weapons() fakemeta way
 
If setted mp_teamplay 1 and player just connected (before 1st death), get_user_team(player) returns -1.
I chek get_user_team(player) == -1 end call
strip_user_weapons(player)
spawn(player)
to get real team

Arkshine 03-02-2010 09:55

Re: strip_user_weapons() fakemeta way
 
What do you want to do exactly ?

Flipper_SPb 03-02-2010 10:18

Re: strip_user_weapons() fakemeta way
 
Fix the HL teamplay bug with determining the player team.
get_user_team(player) returns -1 all the time after player connect until player die

Arkshine 03-02-2010 11:51

Re: strip_user_weapons() fakemeta way
 
Hmm, once again you could use Orpheu, it will work.

Calling GetTeamID() to know the team name and using GetTeamIndex() to know the team index.


All times are GMT -4. The time now is 08:39.

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