Raised This Month: $51 Target: $400
 12% 

CS_SET_USER_TEAM is bugged?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-27-2011 , 03:39   CS_SET_USER_TEAM is bugged?
Reply With Quote #1

Hi , Just want to know is there any best way to transfer all T to CT and CT to remain CT . As I know , claudiuhks module is good but it give me error ( stucked on loading ) .

Here code . The bugged code , any help would be good ;)

PHP Code:
public Fw_Ham_Spawn(id)
{
    if ( 
is_user_connected(id) )
    {
        if ( 
cs_get_user_team(id) == CS_TEAM_T )
        {
            
cs_set_user_team(idCS_TEAM_CT)
        }
    }
    
    return 
PLUGIN_HANDLED;

__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 12-27-2011 at 03:40.
JoKeR LauGh is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 12-27-2011 , 04:35   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #2

PHP Code:
is_user_connected(id

PHP Code:
is_user_alive(id
SpeeDeeR is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-27-2011 , 04:37   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #3

Why you don't ask in the related thread about the module ? What error ? Windows/Linux ?
__________________
Arkshine is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-27-2011 , 05:59   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #4

Window . While the game is loading , It stuck for a very long time until I decide to close my laptop safely ( press the start button ) . After restart , I tried to try it on the second time and it still the same . So , I changed my code back to the cstrike module but it didn't work in the game .
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-27-2011 , 07:14   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #5

Ham_Spawn is called when you are connecting on a server too.
So, if you set a team while he is connecting, you have to stop the load and BUG.

Check if the user is alive before.
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 12-27-2011 at 07:14.
Devil259 is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-27-2011 , 07:52   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #6

Agreed with you , will try that . Nice people always helps .
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-27-2011 , 11:33   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #7

Quote:
Originally Posted by Devil259 View Post
Ham_Spawn is called when you are connecting on a server too.
Is that really true?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-27-2011 , 11:35   Re: CS_SET_USER_TEAM is bugged?
Reply With Quote #8

Quote:
Originally Posted by bibu View Post
Is that really true?
Yes, and that is why you need to check is_user_alive.
__________________
xPaw 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 17:41.


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