SA-MP Forums Archive
help - 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)
+--- Thread: help (/showthread.php?tid=580666)



help - RuNBoY - 07.07.2015

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


Re: help - youssefehab500 - 07.07.2015

Are you using ZCMD or strcmp or DCMD?


Re: help - RuNBoY - 07.07.2015

ZCMD


Re: help - youssefehab500 - 07.07.2015

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.


Re: help - leo9 - 07.07.2015

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



Re: help - youssefehab500 - 07.07.2015

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.