#1

How do i send a SCM to centrail team ?

sry bad english
Reply
#2

What?
Reply
#3

How to send a SCM to each team just for example russia when somebody attack zone
Reply
#4

PHP код:
stock SCMToTeam(teamidcolormsg)
{
    for(new 
ij=GetPlayerPoolSize(); i<=ji++)
    {
        if(
IsPlayerConnected(i) && GetPlayerTeam(i) == teamidSendClientMessage(icolormsg);
    }

Reply
#5

@Shinja:
Код:
for(new i, j=GetPlayerPoolSize(); i<=j; i++)
otherwise the last player will always excluded.
Reply
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
@Shinja:
Код:
for(new i, j=GetPlayerPoolSize(); i<=j; i++)
otherwise the last player will always excluded.
Thanks. yes it's not same as MAX_PLAYERS
Reply
#7

@Shinja: You didn't added a connection check as well.
Reply
#8

Quote:
Originally Posted by Gammix
Посмотреть сообщение
@Shinja: You didn't added a connection check as well.
Added, thanks
Reply
#9

Quote:
Originally Posted by Gammix
Посмотреть сообщение
@Shinja: You didn't added a connection check as well.
As long as "GetPlayerTeam" is used, it doesn't really matter because if the player is not connected the function returns -1.
If he uses variables to determinate the team for each player, then okay.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)