Raised This Month: $ Target: $400
 0% 

Exec command ONCE after chosing a team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 04-15-2012 , 08:21   Exec command ONCE after chosing a team
Reply With Quote #1

Hey,

I'm trying to exec a say command after a player joins the server and chooses a team.

Currently i'm using this method:

PHP Code:
public client_infochanged(id
{     
    if (
get_user_team(id) > 0client_cmd(id"say /rules")
    return 
PLUGIN_CONTINUE 

Problem is, that even if the player changes his team, the commands executes again. I need it to execute ONLY once after the first teamjoin.
__________________

Last edited by DeLiriuM; 04-15-2012 at 08:21.
DeLiriuM is offline
 



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 07:48.


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