Raised This Month: $ Target: $400
 0% 

execute a comand on a team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 03-03-2009 , 01:58   Re: execute a comand on a team
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
However, you are looping through more times than needed (1->maxplayers) and checking get_user_team and is_user_alive with each iteration. My method is more proper and efficient, why not get newer coders started using the correct methods?
This guy is asking a way how to use a simple native or something like that. I'm just saying that for people who are starting scripting can be little hard to understand the best and optimized ways. I wouldn't start explaining them something todally advanced, if there's a lot of easier way to understand, what would work almost as good as the others. Just thought that if he gots some problems on your way, he could use the other.
Quote:
Originally Posted by fysiks View Post
@Snow & HleV

I think you both will get runtime errors for checking the team of an empty slot.

(I always get runtime errors for checking the team of empty slots)
Quote:
Originally Posted by Bugsy View Post
In that case, an is_user_connected() will also be in order.
Somehow you probably didn't see that I first checked if the player is alive, and after that the team. Ofc connected check could be little better here like for example, but he was talking about slaying, so slaying dead players wouldn't be that good.

Last edited by SnoW; 03-03-2009 at 02:01.
SnoW is offline
Send a message via MSN to SnoW
 



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:09.


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