want to set a maximum of players enters a deathmatch - 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: want to set a maximum of players enters a deathmatch (
/showthread.php?tid=77284)
want to set a maximum of players enters a deathmatch -
Bearfist - 09.05.2009
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 ?
Re: want to set a maximum of players enters a deathmatch -
GanG$Ta - 10.05.2009
Код:
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.
Re: want to set a maximum of players enters a deathmatch -
Bearfist - 10.05.2009
...I tried with for(...)
a few minutes before your post ^^
and it works =)
But thanks
Re: want to set a maximum of players enters a deathmatch -
klavins - 30.07.2009
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?