Help with cmd
#2

On top of script
Код:
new dm[MAX_PLAYERS];
OnPlayerConnect:
Код:
dm[playerid] = 0;
When player type command for dm zone:
Код:
dm[playerid] = 1;
On Every other command:
Код:
if(dm[playerid] == 1) return SendClientMessage(playerid, -1, "Type /leave first");
On leave command:
Код:
dm[playerid] = 0;
OnPlayerSpawn after everything else write this:
Код:
if(dm[playerid] == 1)
{
//Teleport and give him weapon for dm zone
}
Reply


Messages In This Thread
Help with cmd - by KrYpToN98 - 01.04.2014, 18:16
Re: Help with cmd - by CroM256 - 01.04.2014, 18:21
Re: Help with cmd - by KrYpToN98 - 01.04.2014, 18:24
Re: Help with cmd - by CroM256 - 01.04.2014, 18:28
Re: Help with cmd - by KrYpToN98 - 01.04.2014, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)