PDA

View Full Version : help


RuNBoY
07/07/2015, 08:38 AM
How to make when player goes to deathmach he cant type any other command but when leaves deathmatch he can ?

youssefehab500
07/07/2015, 08:39 AM
Are you using ZCMD or strcmp or DCMD?

RuNBoY
07/07/2015, 08:53 AM
ZCMD

youssefehab500
07/07/2015, 09:02 AM
Use OnPlayerCommandPerformed, ****** it. If you find it, make it to check if the player in a DM area, if so make it to return 0 the commands.

leo9
07/07/2015, 09:57 AM
Try this one

public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerInDmZone(playerid))//put your condition for checking is in zone
{
return 1;
}
return 0;
}

youssefehab500
07/07/2015, 07:47 PM
Try this one

public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerInDmZone(playerid))//put your condition for checking is in zone
{
return 1;
}
return 0;
}


He is using ZCMD, this won't work.