SA-MP Forums Archive
Blocking some cmds - 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: Blocking some cmds (/showthread.php?tid=461716)



Blocking some cmds - ReshiramZekrom - 03.09.2013

Is there a way to block some cmds when u are in a place? I want to block only same teleports when i go to a place. Is there something?


Re: Blocking some cmds - Tom1412 - 03.09.2013

you can set it so if they is only a few places that it checks for that area and if ur not in it the cmd wont work

for this you want to use
pawn Код:
if(!strcmp("/stadium",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    }
    return 1;
}



Re: Blocking some cmds - ReshiramZekrom - 03.09.2013

Yes, but it's a slow (and lag) way :/