Limit max players in a deathmatch ?
#2

Just an short example:

pawn Код:
new DM3Joiners;
new DMParticipant[MAX_PLAYERS];

//at the cmd
if(DMParticipant[playerid]==1) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are already in a deatmatch.");
if(DM3Joiners>=3)
{
//Your code....then
DM3Joiners++;
DMParticipant[playerid]=1;
}
else
{
return SendClientMessage(playerid, COLOR_RED, "Dm 3 is full.");
}


//OnPlayerDeath
DM3Joiners--;
DMParticipant[playerid]=0;


//OnPlayerDisconnect
DMParticipant[playerid]=0;

This was just fast typed.
If you have any questions, or any errors, or something more, just let me know.

Jeffry
Reply


Messages In This Thread
Limit max players in a deathmatch ? - by Shoko Lacho - 17.05.2010, 17:48
Re: Limit max players in a deathmatch ? - by Jeffry - 17.05.2010, 17:55
Re: Limit max players in a deathmatch ? - by deather - 17.05.2010, 17:55
Re: Limit max players in a deathmatch ? - by Naxix - 17.05.2010, 18:02
Re: Limit max players in a deathmatch ? - by Shoko Lacho - 17.05.2010, 19:15
Re: Limit max players in a deathmatch ? - by deather - 18.05.2010, 08:57

Forum Jump:


Users browsing this thread: 1 Guest(s)