/help carshop - Only usable at a certain area - Help!
#1

I want to make that if a player is in an area and types /help carshop, the help menu shows up.
And if he is not in the area, it says unknown command.
This is what I made but it shows me a message even when i am not at the area.
Quote:

if(strcmp(cmdtext, "/help carshop", true) == 0)
{
if(IsAtCarshop(playerid, 0))
SendClientMessage(playerid,blue,"[!] Find a Car Dealer, and see what vehicles he has for sale.");
}

Quote:

public IsAtCarshop(playerid, areaid)
{
if(IsPlayerConnected(playerid))
{
if(areaid == Carshop)

return 1;
}
return 1;
}

Reply
#2

what the hell is this:
pawn Код:
public IsAtCarshop(playerid, areaid)
{
  if(IsPlayerConnected(playerid))
  {
      if(areaid == Carshop)
     
      return 1;
  }
  return 1;
}
try to use PlayerToPoint instead....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)