pawn Код:
if(dialogid == 8899)
{
if(response)
{
if(listitem == 0)
{
// Blue
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon1", CreateDynamicObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon2", CreateDynamicObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: Blue neon installed!");
GivePlayerMoney(playerid, - 5000);
GameTextForPlayer(playerid, "~w~-~r~5.000~g~$", 5000, 1);
}
if(listitem == 1)
{
// Red
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon3", CreateDynamicObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon4", CreateDynamicObject(18647,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: Red neon installed!");
GivePlayerMoney(playerid, - 5000);
GameTextForPlayer(playerid, "~w~-~r~5.000~g~$", 5000, 1);
}
if(listitem == 2)
{
// Green
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon5", CreateDynamicObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "neon6", CreateDynamicObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: Green neon installed!");
GivePlayerMoney(playerid, - 5000);
GameTextForPlayer(playerid, "~w~-~r~5.000~g~$", 5000, 1);
}
if(listitem == 3)
{
// White
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon7", CreateDynamicObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon8", CreateDynamicObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: White neon installed!");
GivePlayerMoney(playerid, - 5000);
GameTextForPlayer(playerid, "~w~-~r~5.000~g~$", 5000, 1);
}
if(listitem == 4)
{
// Pink
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon9", CreateDynamicObject(18651,0,0,0,0,0,0));
SetPVarInt(playerid, "neon10", CreateDynamicObject(18651,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: Pink neon installed!");
GivePlayerMoney(playerid, - 5000);
GameTextForPlayer(playerid, "~w~-~r~5.000~g~$", 5000, 1);
}
if(listitem == 5)
{
// Yellow
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon11", CreateDynamicObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "neon12", CreateDynamicObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: Yellow neon installed!");
GivePlayerMoney(playerid, - 5000);
GameTextForPlayer(playerid, "~w~-~r~5.000~g~$", 5000, 1);
}
if(listitem == 6)
{
// Removed Neon
DestroyObject(GetPVarInt(playerid, "neon1"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon2"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon3"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon4"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon5"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon6"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon7"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon8"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon9"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon10"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon11"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon12"));
DeletePVar(playerid, "Status");
SendClientMessage(playerid, COLOR_GREY, "Neon Shop: All neon removed!");
GivePlayerMoney(playerid, - 10000);
GameTextForPlayer(playerid, "~w~-~r~10.000~g~$", 5000, 1);
}
}
}