if(IsAtClothShop(playerid))
#1

can i make like this : if(IsAtClothShop(playerid)) in ammunation ? like if(IsAtAmmunation(playerid)) or something like that
Reply
#2

Sure you can something like

Код:
forward IsAtClothShop(playerid);
public IsAtClothShop(playerid) {
  if(IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy) { // Replace minx,y & maxx,y with the interior coords you got.
    return 1;
  } else {
    return 0;
  }
}
If player is in ClothShop (If coords is filled), returns 1, else 0.
Reply
#3

Well, you can make the IsAtAmmunation just like IsAtClothShop, but change the parameters like Interior, etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)