car shop
#1

Hy i make simple car shop but then i go in pickup i shows list of cars but then i want buy car nothing hapens.

Quote:

if(dialogid == DIALOG_TYPE_WANG_CARS && response == 1)
{
switch(listitem)
{
case 1:
{
if(GetPlayerMoney(playerid) >= 100000)
{
new Sabre;
GivePlayerMoney(playerid, -100000);
Sabre = AddStaticVehicle(475, -1957.2974, 268.7513, 35.3599, 71.2474, 0, 1);
PutPlayerInVehicle(playerid, Sabre, 0);
SendClientMessage(playerid, COLOR_ORANGE, "(INFO) You bought an Sabre! Congrats!");
SendClientMessage(playerid, COLOR_ORANGE," You may obtain a insurance from the red checkpoint!");
TogglePlayerControllable(playerid,1);
SetPlayerCheckpoint(playerid, -1957.2974, 268.7513, 35.3599,5.0);
ownedcar[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO) You don't have this much cash to buy an Sabre!");
}
}

Reply


Messages In This Thread
car shop - by livests - 07.03.2012, 08:38
Re: car shop - by Basicz - 07.03.2012, 08:48
Re: car shop - by livests - 07.03.2012, 09:07
Re: car shop - by livests - 07.03.2012, 09:11
Re: car shop - by livests - 07.03.2012, 10:19
Re: car shop - by livests - 08.03.2012, 09:29

Forum Jump:


Users browsing this thread: 2 Guest(s)