27.12.2013, 16:59
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 :
And it`s good this codes ?
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 ?
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;
}
Код:
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;
}
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 ?

