#1

How to make when player goes to deathmach he cant type any other command but when leaves deathmatch he can ?
Reply
#2

Are you using ZCMD or strcmp or DCMD?
Reply
#3

ZCMD
Reply
#4

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.
Reply
#5

Try this one
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(IsPlayerInDmZone(playerid))//put your condition for checking is in zone
     {
          return 1;
     }
     return 0;
}
Reply
#6

Quote:
Originally Posted by leo9
Посмотреть сообщение
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)