Dealership - 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)
+--- Thread: Dealership (
/showthread.php?tid=483750)
Dealership -
OnY - 27.12.2013
Hello everyone !
I want to make a command like /catalog : when you are in dealership to type /catalog and see a cars photo..So,
I make this command :
Код:
CMD:catalog(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2361.2095, -66.9100, 25.6588))
{
if(IsPlayerInDealership(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Trebuie sa fii in Dealership !");
}
return 1;
}
And it`s good this codes ?
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInDealership(playerid))
if (((newkeys & KEY_LEFT) && !(oldkeys KEY_LEFT)))
{
//Make previous model appear
}
else if (((newkeys & KEY_RIGHT) && !(oldkeys KEY_RIGHT)))
{
//Make next vehicle model appear
}
}
return 1;
}
My question is: What can i put there "//Make previous model appear" ?
I wanna make a dealership like this..but not with buyable :
When i use the arrows {< >} to change cars..
Or,you know a FS with a dealer or showroom like this ?
Re: Dealership -
OnY - 28.12.2013
Anyone ?
Re: Dealership -
OnY - 28.12.2013
Lol,Anyone ?