Raised This Month: $ Target: $400
 0% 

strip_user_weapons() fakemeta way


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 08:52   strip_user_weapons() fakemeta way
Reply With Quote #1

I can't find how to do this..
Can you help?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 08:54   Re: strip_user_weapons() fakemeta way
Reply With Quote #2

Fun is fine, use fun way.
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 09:02   Re: strip_user_weapons() fakemeta way
Reply With Quote #3

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

Last edited by Flipper_SPb; 03-02-2010 at 09:05.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 09:17   Re: strip_user_weapons() fakemeta way
Reply With Quote #4

Don't use spawn(). Either use Ham_CS_RoundSpawn either pev_deadflag (DEAD_RESPAWNABLE) + DLLFunc_Think
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 09:30   Re: strip_user_weapons() fakemeta way
Reply With Quote #5

I make a plugin for Half-Life
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 09:31   Re: strip_user_weapons() fakemeta way
Reply With Quote #6

Use the second way so.
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 09:35   Re: strip_user_weapons() fakemeta way
Reply With Quote #7

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
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 09:55   Re: strip_user_weapons() fakemeta way
Reply With Quote #8

What do you want to do exactly ?
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 10:18   Re: strip_user_weapons() fakemeta way
Reply With Quote #9

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
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 11:51   Re: strip_user_weapons() fakemeta way
Reply With Quote #10

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.
__________________
Arkshine 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 08:39.


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