BikePickup = CreatePickup(1274, 1, 2131.628662 , -1148.841187 , 24.830555); BikeMenu = CreateMenu("Bikeshop", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(OttoMenu, 0, "NRG-500"); AddMenuItem(OttoMenu, 1, "5.000 $");
OttoPickup = CreatePickup(1274, 1, 563.659180, -1290.866577, 17.748238); OttoMenu = CreateMenu("Autohaus", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(OttoMenu, 0, "Bullet"); AddMenuItem(OttoMenu, 1, "30.000 $");
case 0: //Bullet if (IsPlayerConnected(playerid)) { if (GetPlayerMoney(playerid) >= 30000) { CreateVehicle(541, 546.304199, -1281.4026, 17.748238 ,90.0,6,0,60000); GivePlayerMoney(playerid, -30000); SendClientMessage(playerid, COLOR_GREEN, "Du hast ein Auto gekauft! Hole es am Punkt ab!"); SetPlayerCheckpoint(playerid,546.304199, -1281.4026, 17.748238,5); Checkpoint[playerid] = 1; } }
case 1: //NRG if (IsPlayerConnected(playerid)) { if (GetPlayerMoney(playerid) >= 5000) { CreateVehicle(522, 546.304199, -1281.4026, 17.748238 ,90.0,6,0,60000); GivePlayerMoney(playerid, -5000); SendClientMessage(playerid, COLOR_GREEN, "Du hast ein Auto gekauft! Hole es am Punkt ab!"); SetPlayerCheckpoint(playerid,546.304199, -1281.4026, 17.748238,5); Checkpoint[playerid] = 1; } else { SendClientMessage(playerid, COLOR_RED, "Du hast nicht genьgend Geld!"); } }
BikePickup = CreatePickup(1274, 1, 2131.628662 , -1148.841187 , 24.830555); BikeMenu = CreateMenu("Bikeshop", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(OttoMenu, 0, "NRG-500"); AddMenuItem(OttoMenu, 1, "5.000 $");
BikePickup = CreatePickup(1274, 1, 2131.628662 , -1148.841187 , 24.830555); BikeMenu = CreateMenu("Bikeshop", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(BikeMenu , 0, "NRG-500"); AddMenuItem(BikeMenu , 1, "5.000 $");
Originally Posted by Oxside
At OnPlayerPickup should be something like ShowMenuForPlayer
|