Stopping players from using modshops?
#1

Ok so heres my code:

Код:
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
  if(enterexit == 1) return SendClientMessage(playerid, mError, "Error: You cannot use Modshops, You must earn your parts.");
  return 0;
}
I thought this would render the modshops unusable, But instead it just says the error message, Any help?.
Reply
#2

Quote:
Originally Posted by Chris - X-Host
Ok so heres my code:

Код:
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
  if(enterexit == 1) return SendClientMessage(playerid, mError, "Error: You cannot use Modshops, You must earn your parts.");
  return 0;
}
I thought this would render the modshops unusable, But instead it just says the error message, Any help?.
Try removing the return in between your if statement and the function. It's returning the message only i believe.
Reply
#3

You can't disable modshops by returning false in the callback. This method works only in few callbacks such as OnPlayerText.

In case you want disable modshops, you will have to find another solution, e.g. placing objects in front of the garage so players can't enter it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)