17.05.2010, 17:55
Just an short example:
This was just fast typed.
If you have any questions, or any errors, or something more, just let me know.
Jeffry
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