Raised This Month: $ Target: $400
 0% 

client_putinserver - respawn problem/explanation


Post New Thread Reply   
 
Thread Tools Display Modes
xTr3m3r
Member
Join Date: Feb 2010
Old 02-18-2017 , 13:11   Re: client_putinserver - respawn problem/explanation
Reply With Quote #11

what does
PHP Code:
if((1<<get_user_team(id)) & ((1<<TEAM_CT)|(1<<TEAM_T)) 
and
PHP Code:
client_cmd(id"joinclass 5"); 
exactly mean?

Is it checking if the player has any team assigned and if he doesnt he is spawned as spectator? (joinclass 5)

Last edited by xTr3m3r; 02-18-2017 at 13:12.
xTr3m3r is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-18-2017 , 13:51   Re: client_putinserver - respawn problem/explanation
Reply With Quote #12

Quote:
Originally Posted by xTr3m3r View Post
what does
PHP Code:
if((1<<get_user_team(id)) & ((1<<TEAM_CT)|(1<<TEAM_T)) 
and
PHP Code:
client_cmd(id"joinclass 5"); 
exactly mean?

Is it checking if the player has any team assigned and if he doesnt he is spawned as spectator? (joinclass 5)
1. Is for checking team assigned
But look at the other posts

2. If user chose a team but didnt choose a class it will automatically choose for him a random class
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-18-2017 at 13:52.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
xTr3m3r
Member
Join Date: Feb 2010
Old 02-19-2017 , 06:16   Re: client_putinserver - respawn problem/explanation
Reply With Quote #13

this is what i get when trying to compile:

PHP Code:
\connrespawn.sma(21) : error 029invalid expressionassumed zero 
xTr3m3r is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-19-2017 , 09:00   Re: client_putinserver - respawn problem/explanation
Reply With Quote #14

Quote:
Originally Posted by xTr3m3r View Post
this is what i get when trying to compile:

PHP Code:
\connrespawn.sma(21) : error 029invalid expressionassumed zero 
its was missing ')' i edited the code...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 01:28.


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