want to set a maximum of players enters a deathmatch
#1

Hi @ all,

I made a boxing command and I only want no more then 2 people to are able to boxing
how to do it ?
Reply
#2

Код:
new PlayerLimitDeathmatch;
PlayerLimitDeathmatch++;
if(PlayerLimitDeathmatch < 3)
{
// players can Deathmatch
//set the pos and other stuff
}
else if(PlayerLimitDeathmatch > 2) return SendClientMessage(playerid,COLOR,"Max Player Limit is 2");
when the deathmatch end reset PlayerLimitDeathmatch to zero.
Reply
#3

...I tried with for(...)
a few minutes before your post ^^
and it works =)

But thanks
Reply
#4

Quote:
Originally Posted by DeathlyForce
Код:
new PlayerLimitDeathmatch;
PlayerLimitDeathmatch++;
if(PlayerLimitDeathmatch < 3)
{
// players can Deathmatch
//set the pos and other stuff
}
else if(PlayerLimitDeathmatch > 2) return SendClientMessage(playerid,COLOR,"Max Player Limit is 2");
when the deathmatch end reset PlayerLimitDeathmatch to zero.
how to use it?
and how to reset when one of them dies?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)