Dm players
#1

Hello. I want to do DM. And I need to know how to get players in DM? Something like that:

Код:
if(IsAnyOneInDM)
{
SendClientMessage(playerid, color, "DM is already created. Use join.");
return 1;
}
I think you know what I'm talking about.
Reply
#2

Anyone?
Reply
#3

pawn Код:
new IsAnyOneInDM[MAX_PLAYERS];
then:
pawn Код:
if (strcmp("/joinDM", cmdtext, true, 10) == 0)
    {
    if(IsAnyOneInDM[playerid] == 0;
        {
         IsAnyOneInDM[playerid] == 1;
         SendClientMessageToAll(color,"DM Has Been Started Use /joinDM");
    }
    else
    {
     SendClientMessage(playerid, color,"DM Has Already Been Started Use /joinDM");
        }
        return 1;
    }
i did that in about 4 minutes xD I'm not that it works 100%
Reply
#4

Ok.. But when all players go out of DM, how to set IsAnyOneInDM[playerid] == 0;?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)