Need Help By Blocking commands - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Help By Blocking commands (
/showthread.php?tid=129411)
Need Help By Blocking commands -
rs2fun111 - 22.02.2010
Hi , need some help by blocking place for /car command
im thinked day and night how its possible , but nothing.
can someone please help?
pawn Код:
if(strcmp(cmdtext, "/car", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 428.54077148438,2471.2541503906, 25.62894821167)) // have to block this place for car command
{
SendClientMessage(playerid, COLOR_RED,"You Cannot Use This Command Here");
}
return 1;
}
Re: Need Help By Blocking commands -
MisterTickle - 22.02.2010
Does this function not work?
Re: Need Help By Blocking commands -
rs2fun111 - 22.02.2010
no it lets use /car command only in this point.
Re: Need Help By Blocking commands -
Gamer_Z - 22.02.2010
pawn Код:
if(strcmp(cmdtext, "/car", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 428.54077148438,2471.2541503906, 25.62894821167))return SendClientMessage(playerid, COLOR_RED,"You Cannot Use This Command Here"); // if player is in range of this point, all the code after this isn't executed
//your command function here
return 1;
}
any questions? just ask.
Re: Need Help By Blocking commands -
rs2fun111 - 22.02.2010
thank you