SA-MP Forums Archive
Carshop [Solved] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Carshop [Solved] (/showthread.php?tid=140746)



Carshop [Solved] - security - 10.04.2010

I want to make a car shop, so if i do /buy in the propperty i will get a diolog with certain cars.
And if you are outside the car shop i want to let it show a message: You are not in a Carshop.

This is what i have:
Код:
//======================
new carshop;

public OnGameModeInit() {
  carshop = GangZoneCreate(-2000,689, 262,6848, -1915,71, 329,7492);
  return 1;
}

public OnPlayerSpawn(playerid) {
  GangZoneShowForPlayer(playerid, carshop, 0x00000096);
  return 1;
}
//======================
How do i get it so that if a player is in that zone and say: /buycar orsomething that a dialog will pop-up with certain cars.

And if he is outside the zone he get a message: You are not at a carshop or something.


Nevermind, found it