Need Help By Blocking commands
#1

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;
}
Reply
#2

Does this function not work?
Reply
#3

no it lets use /car command only in this point.
Reply
#4

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

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)