07.03.2012, 08:38
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!"); } } |