Raised This Month: $ Target: $400
 0% 

Please review my plugin, Any room for improvements?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 07-23-2013 , 22:07   Re: Please review my plugin, Any room for improvements?
Reply With Quote #8

I observed the /afk problem, It can only be used by 1 player at a time. I am new with arrays in amxx. So I need a little help.

I will have to do
PHP Code:
new teams[32]; 
Then save players id and team like this.
PHP Code:
teams[id] = get_user_team(id); 
and later, call it as required.
PHP Code:
cs_set_user_team(idteams[id]); 
and for making it useable for more than 1 player, I will have to tweak:

PHP Code:
new afk[32];
if( ........ && 
afk[id] == 0  && .....){
  
//make afk
  //Reset variable
  
afk[id] = ;

Will this work for afk thingy ?

Last edited by devWaleed; 07-23-2013 at 22:11.
devWaleed is offline
Send a message via Skype™ to devWaleed
 



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 06:28.


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