[Help] 0.3 GUI Menu
#1

I need a script, so that when I get to a particular coordinate, the server open the new 0.3 GUI menu with several options.
For example: I arrive at a certain coordinate in the bank and the menu appears, which you can choose: Banking, Extract ... etc ...

Example:


Cumps
Reply
#2

Please Help me
Reply
#3

On top of the script:

pawn Код:
forward CheckPlayerPos(playerid);
Under OnGameModeInit:

pawn Код:
SetTimer("CheckPlayerPos", 3000, 1);
At the end of your script:

pawn Код:
public CheckPlayerPos(playerid)
{
  IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)
  {
    // The DialogShow code here.
  }
  return 1;
}
Reply
#4

Thanks a lot
Reply
#5

that will only work for ID 0:


this is what you do


pawn Код:
public CheckPlayerPos(playerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  if(IsPlayerInRangeOfPoint(i, Float:range, Float:x, Float:y, Float:z)
  {
    // The DialogShow code here.
  }
  return 1;
}
for every playerid you add change it to i
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)