Dm players - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dm players (
/showthread.php?tid=107797)
Dm players -
lakierka - 11.11.2009
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.
Re: Dm players -
lakierka - 12.11.2009
Anyone?
Re: Dm players -
(Jeff) - 12.11.2009
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%
Re: Dm players -
lakierka - 12.11.2009
Ok.. But when all players go out of DM, how to set IsAnyOneInDM[playerid] == 0;?