scripting help team divide
i wanted to know how can we divide a team say terrorists to two groups ? like half of terrorist's model be terror and half be guerilla ? like if admins say /team_up ? dont need full plugin just that part of script if number are odd then error like teams cannot be made due to odd number of terrorists
thanks |
Re: scripting help team divide
Code:
new iPlayers = 11 |
Re: scripting help team divide
can you explain a bit more ?
|
Re: scripting help team divide
You said:
Quote:
In the example code it can't be divided, so "iExtraPlayers" is 1. |
Re: scripting help team divide
what am i doing wrong i want that even number of t's divide and 1 groups entity should have entity_set_int(Players[i], EV_INT_skin, random_num, 0) and other group entity_set_int(Players[i], EV_INT_skin, random_num, 1)
|
Re: scripting help team divide
Quote:
|
Re: scripting help team divide
Quote:
PHP Code:
|
Re: scripting help team divide
You have to loop through players. Your code is only affecting first player.
|
Re: scripting help team divide
Code:
for(new squad, player, i = 0; i < playerCount; i++) |
Re: scripting help team divide
PHP Code:
|
| All times are GMT -4. The time now is 00:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.